diff options
author | David Rowley <drowley@postgresql.org> | 2024-07-01 12:11:10 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2024-07-01 12:11:10 +1200 |
commit | 1029bdec2d641f378eaa59f00a93b136f191f3c7 (patch) | |
tree | 830316c3c1f5eef15fc85aa69460c6f7dcf8c7e8 /src/test | |
parent | e26810d01d441a457217a6eae9c2989fba29b80f (diff) | |
download | postgresql-1029bdec2d641f378eaa59f00a93b136f191f3c7.tar.gz postgresql-1029bdec2d641f378eaa59f00a93b136f191f3c7.zip |
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
Diffstat (limited to 'src/test')
0 files changed, 0 insertions, 0 deletions