aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-06-28 14:17:41 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-06-28 14:17:41 -0400
commit6f5d9bce57a7bb29ba61f0bf4fd465a26de9fc28 (patch)
treec7bf1878eb0a57c223856ca3ad6c2cb8b9307a96 /src/backend/access/transam/xlog.c
parent01697e92a460b10fde43707b29391c8deb69573e (diff)
downloadpostgresql-6f5d9bce57a7bb29ba61f0bf4fd465a26de9fc28.tar.gz
postgresql-6f5d9bce57a7bb29ba61f0bf4fd465a26de9fc28.zip
Don't use abort(3) in libpq's fe-print.c.
Causing a core dump on out-of-memory seems pretty unfriendly, and surely is far outside the expected behavior of a general-purpose library. Just print an error message (as we did already) and return. These functions unfortunately don't have an error return convention, but code using them is probably just looking for a quick-n-dirty print method and wouldn't bother to check anyway. Although these functions are semi-deprecated, it still seems appropriate to back-patch this. In passing, also back-patch b90e6cef1, just to reduce cosmetic differences between the branches. Discussion: https://postgr.es/m/3122443.1624735363@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions