Re: PQexec() hangs on OOM - Mailing list pgsql-bugs

From Tom Lane
Subject Re: PQexec() hangs on OOM
Date
Msg-id 25150.1428328002@sss.pgh.pa.us
Whole thread Raw
In response to Re: PQexec() hangs on OOM  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: PQexec() hangs on OOM  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-bugs
Michael Paquier <michael.paquier@gmail.com> writes:
> Second idea: return a status with parseInput as it is not part of the APIs
> of libpq.

Yeah; most subroutines in libpq have a zero-or-EOF return convention,
we can make parseInput do likewise.  I'm not sure if that'd need to
propagate further down though ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: PQexec() hangs on OOM
Next
From: Andres Freund
Date:
Subject: Re: BUG #12910: Memory leak with logical decoding