diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2024-10-28 14:39:01 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2024-10-28 14:39:01 -0400 |
commit | 11b7de4a784135d7a9bce4a29ede092797749efc (patch) | |
tree | ca09a0d69153b39699e83befc1c992e86cdc0c09 /src/common/psprintf.c | |
parent | bd2843167200f2607972c0defb916daa79ca265f (diff) | |
download | postgresql-11b7de4a784135d7a9bce4a29ede092797749efc.tar.gz postgresql-11b7de4a784135d7a9bce4a29ede092797749efc.zip |
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).
Diffstat (limited to 'src/common/psprintf.c')
-rw-r--r-- | src/common/psprintf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/common/psprintf.c b/src/common/psprintf.c index a063fd26d51..2ebc01093f5 100644 --- a/src/common/psprintf.c +++ b/src/common/psprintf.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 |