Unify src/common/'s definitions of MaxAllocSize.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 11b7de4a784135d7a9bce4a29ede092797749efc
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-10-28T18:39:01Z
Releases: 18.0
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).

Files

PathChange+/−
src/common/psprintf.c modified +0 −3
src/common/saslprep.c modified +0 −4
src/common/stringinfo.c modified +0 −3
src/include/common/fe_memutils.h modified +12 −0