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

From Michael Paquier
Subject Re: PQexec() hangs on OOM
Date
Msg-id CAB7nPqT1TVnaKgfoXE7fgKhvL6-ibDWTj1BQT3TjEgp60_cH0A@mail.gmail.com
Whole thread Raw
In response to Re: PQexec() hangs on OOM  (Oleksandr Shulgin <oleksandr.shulgin@zalando.de>)
Responses Re: PQexec() hangs on OOM  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-bugs
On Thu, May 21, 2015 at 1:31 AM, Oleksandr Shulgin wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
>> So, attached is take three for all the other things above.
>
> There's still one call to pqGetErrorNotice3 that doesn't check returned
> value for -2, in fe-connect.c.  Shouldn't we also check it like this:
>
> [...]

Yes, you are right. Take 4 attached is updated with something similar
to what you sent to cover this code path.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Incorrect processing of CREATE TRANSFORM with DDL deparding
Next
From: Alvaro Herrera
Date:
Subject: Re: Incorrect processing of CREATE TRANSFORM with DDL deparding