pgsql: Unify src/common/'s definitions of MaxAllocSize.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Unify src/common/'s definitions of MaxAllocSize.
Date: 2024-10-28 18:39:09
Message-ID: E1t5Udy-002snN-Am@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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).

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/11b7de4a784135d7a9bce4a29ede092797749efc

Modified Files
--------------
src/common/psprintf.c | 3 ---
src/common/saslprep.c | 4 ----
src/common/stringinfo.c | 3 ---
src/include/common/fe_memutils.h | 12 ++++++++++++
4 files changed, 12 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2024-10-28 19:42:52 Re: pgsql: Implement pg_wal_replay_wait() stored procedure
Previous Message Alexander Korotkov 2024-10-28 18:35:02 Re: pgsql: Implement pg_wal_replay_wait() stored procedure