Re: libpq async duplicate error results - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq async duplicate error results
Date
Msg-id 3525998.1645063932@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq async duplicate error results  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@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



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Small and unaffected typo in pg_logical_slot_get_changes_guts()
Next
From: Andres Freund
Date:
Subject: Re: killing perl2host