Re: PQexec() hangs on OOM

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: hlinnaka(at)iki(dot)fi, Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: PQexec() hangs on OOM
Date: 2015-04-06 13:46:42
Message-ID: 25150.1428328002@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Michael Paquier <michael(dot)paquier(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2015-04-06 13:50:26 Re: BUG #12910: Memory leak with logical decoding
Previous Message Peter Slavov 2015-04-06 12:35:19 Re: BUG #12910: Memory leak with logical decoding