pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve enlargeStringInfo's ERROR message
Date: Mon, 01 Jul 2024 00:11:56 +0000
Message-ID: <E1sO4eB-003iva-Pp@gemulon.postgresql.org> (raw)

Improve enlargeStringInfo's ERROR message

Until now, when an enlargeStringInfo() call would cause the StringInfo to
exceed its maximum size, we reported an "out of memory" error.  This is
misleading as it's no such thing.

Here we remove the "out of memory" text and replace it with something
more relevant to better indicate that it's a program limitation that's
been reached.

Reported-by: Michael Banck
Reviewed-by: Daniel Gustafsson, Tom Lane
Discussion: https://postgr.es/m/18484-3e357ade5fe50e61@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1029bdec2d641f378eaa59f00a93b136f191f3c7

Modified Files
--------------
src/common/stringinfo.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)



Message-ID: <E1sO4eB-003iva-Pp@gemulon.postgresql.org>
Permalink:  ../E1sO4eB-003iva-Pp@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sO4eB-003iva-Pp@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: drowley@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Improve enlargeStringInfo's ERROR message
  In-Reply-To: <E1sO4eB-003iva-Pp@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox