agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Unify src/common/'s definitions of MaxAllocSize.
Date: Mon, 28 Oct 2024 18:39:09 +0000
Message-ID: <E1t5Udy-002snN-Am@gemulon.postgresql.org> (raw)

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



view thread (5+ messages)  latest in thread

Message-ID: <E1t5Udy-002snN-Am@gemulon.postgresql.org>
Permalink:  ../E1t5Udy-002snN-Am@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1t5Udy-002snN-Am@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Unify src/common/'s definitions of MaxAllocSize.
  In-Reply-To: <E1t5Udy-002snN-Am@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox