summaryrefslogtreecommitdiff
path: root/src/common/psprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/psprintf.c')
-rw-r--r--src/common/psprintf.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/common/psprintf.c b/src/common/psprintf.c
index 026040f7b76..b01e1953609 100644
--- a/src/common/psprintf.c
+++ b/src/common/psprintf.c
@@ -15,12 +15,19 @@
*/
#ifndef FRONTEND
+
#include "postgres.h"
+
+#include "utils/memutils.h"
+
#else
+
#include "postgres_fe.h"
-#endif
-#include "utils/memutils.h"
+/* It's possible we could use a different value for this in frontend code */
+#define MaxAllocSize ((Size) 0x3fffffff) /* 1 gigabyte - 1 */
+
+#endif
/*