Andres Freund <and...@anarazel.de> writes: > On 2022-02-16 20:28:02 -0500, Tom Lane wrote: >> Uh ... then we'd have to cast away the const to do free().
> I was just thinking of > if ((const PGresult *) res == &OOM_result) Oh, I see. Sure, can do it like that. regards, tom lane