Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UnBAv-00061c-Ae for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Jun 2013 17:19:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UnBAu-0004Zg-Nq for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Jun 2013 17:19:04 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UnB8C-0004Xv-4p for pgsql-bugs@postgresql.org; Thu, 13 Jun 2013 17:16:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UnB88-00029e-8O for pgsql-bugs@postgresql.org; Thu, 13 Jun 2013 17:16:15 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r5DHG7BU000232; Thu, 13 Jun 2013 13:16:07 -0400 (EDT) From: Tom Lane To: Hiroshi Inoue cc: Andres Freund , Heikki Linnakangas , Joshua Berry , pgsql-bugs@postgresql.org Subject: Re: [ODBC] Segmentation Fault in Postgres server when using psqlODBC In-reply-to: <51B9C9A8.9000109@tpf.co.jp> References: <51A51147.2060103@tpf.co.jp> <51A75999.6030701@tpf.co.jp> <51AD6351.4030208@tpf.co.jp> <51B0046F.8080908@tpf.co.jp> <51B74E69.4010206@vmware.com> <20130611162652.GA30025@awork2.anarazel.de> <51B9C9A8.9000109@tpf.co.jp> Comments: In-reply-to Hiroshi Inoue message dated "Thu, 13 Jun 2013 22:31:20 +0900" Date: Thu, 13 Jun 2013 13:16:06 -0400 Message-ID: <231.1371143766@sss.pgh.pa.us> X-Pg-Spam-Score: -0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hiroshi Inoue 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs