From: | David Rowley <drowley(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Improve enlargeStringInfo's ERROR message |
Date: | 2024-07-01 00:11:56 |
Message-ID: | E1sO4eB-003iva-Pp@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2024-07-01 00:36:19 | pgsql: Remove PgStat_KindInfo.named_on_disk |
Previous Message | Michael Paquier | 2024-06-30 23:15:04 | pgsql: Adapt REL_17_STABLE to its new status as a stable branch |