Hiroshi Inoue <inoue@tpf.co.jp> writes:
> (2013/06/12 1:26), Andres Freund wrote:
>> I'd guess creating a SQL level WITH HOLD cursor and then fetching that
>> via the extended protocol, outside the transaction, should do the trick.
> OK I made a test C program which reproduces the crash.
> The program uses libpq and a hack.
I've committed a fix for this. Thanks again for the test case.
regards, tom lane