Andres Freund <andres(at)anarazel(dot)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