Unify src/common/'s definitions of MaxAllocSize.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Oct 2024 18:39:01 +0000 (14:39 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Oct 2024 18:39:01 +0000 (14:39 -0400)
commit11b7de4a784135d7a9bce4a29ede092797749efc
treeca09a0d69153b39699e83befc1c992e86cdc0c09
parentbd2843167200f2607972c0defb916daa79ca265f
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/psprintf.c
src/common/saslprep.c
src/common/stringinfo.c
src/include/common/fe_memutils.h