Re: libpq async duplicate error results
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>,
Alvaro Herrera <alvherre@alvh.no-ip.org>,
Peter Eisentraut <peter.eisentraut@enterprisedb.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-02-17T01:28:02Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > On 2022-02-16 18:51:37 -0500, Tom Lane wrote: >> + /* Also, do nothing if the argument is OOM_result */ >> + if (res == unconstify(PGresult *, &OOM_result)) >> + return; > Wouldn't it make more sense to make res const, rather than unconstifying > &OOM_result? Uh ... then we'd have to cast away the const to do free(). regards, tom lane
Commits
-
libpq: drop pending pipelined commands in pqDropConnection().
- 93909599cdba 15.0 landed
-
Adjust interaction of libpq pipeline mode with errorMessage resets.
- b15f254466ae 15.0 landed
-
Rearrange libpq's error reporting to avoid duplicated error text.
- 618c16707a6d 15.0 landed
-
In libpq, always append new error messages to conn->errorMessage.
- ffa2e4670123 14.0 cited