From 11b7de4a784135d7a9bce4a29ede092797749efc Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 28 Oct 2024 14:39:01 -0400 Subject: Unify src/common/'s definitions of MaxAllocSize. As threatened in the previous patch, define MaxAllocSize in src/include/common/fe_memutils.h rather than having several copies of it in different src/common/*.c files. This also provides an opportunity to document it better. While this would probably be safe to back-patch, I'll refrain (for now anyway). --- src/common/stringinfo.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/common/stringinfo.c') diff --git a/src/common/stringinfo.c b/src/common/stringinfo.c index eb9d6502fc8..6192e65477e 100644 --- a/src/common/stringinfo.c +++ b/src/common/stringinfo.c @@ -24,9 +24,6 @@ #include "postgres_fe.h" -/* It's possible we could use a different value for this in frontend code */ -#define MaxAllocSize ((Size) 0x3fffffff) /* 1 gigabyte - 1 */ - #endif #include "lib/stringinfo.h" -- cgit v1.2.3