Re: [ODBC] Segmentation Fault in Postgres server when using psqlODBC

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: Andres Freund <andres@2ndquadrant.com>, Heikki Linnakangas <hlinnakangas@vmware.com>, Joshua Berry <yoberi@gmail.com>, pgsql-bugs@postgresql.org
Date: 2013-06-13T17:16:06Z
Lists: pgsql-bugs
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