Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ4VJ-0001kB-1k for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2013 23:32:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UQ4VI-00032R-2M for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2013 23:32:36 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ4V3-0002pt-JL for pgsql-general@postgresql.org; Wed, 10 Apr 2013 23:32:21 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ4V0-0003Fz-Ke for pgsql-general@postgresql.org; Wed, 10 Apr 2013 23:32:20 +0000 Received: from anarazel.de (p5DDC610D.dip.t-dialin.net [93.220.97.13]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0M96Lt-1UI4IG2ktp-00CR3e; Thu, 11 Apr 2013 01:32:17 +0200 Received: by anarazel.de (Postfix, from userid 1000) id E36BB1C00F7; Thu, 11 Apr 2013 01:32:16 +0200 (CEST) Date: Thu, 11 Apr 2013 01:32:16 +0200 From: Andres Freund To: Tom Lane Cc: Joshua Berry , PostgreSQL - General Subject: Re: Segmentation fault with core dump Message-ID: <20130410233216.GE7547@awork2.anarazel.de> References: <20130410214929.GA7547@awork2.anarazel.de> <20130410222233.GB7547@awork2.anarazel.de> <12385.1365633318@sss.pgh.pa.us> <13081.1365635172@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13081.1365635172@sss.pgh.pa.us> X-Provags-ID: V02:K0:RqZbo12Gsu/Wc+9WU8J8nw7tezZpXbahu8gyZuWclJ+ +WXDn9QiUfh8vgP5N6/9P53hm6tqH5AygoChrCfToKSO75OW/b tDyYGTDn7MqHg9MoWIWFUDN9oWqhqy/EVz6RE/xTLMcKkgaKTt IrFmI0JsDorvnlvtEArR5FiLWqUz/v3IdNFmjr4MEeULkSVZ9t qS8ZGWKpIQNlqyHujEPGKDCFhHQvValEfnbj4Hq9r9IlTXe90E JMhkh5XUz4XL94SM11R4U64OXnJ6NCFQdBQI5U2YRVKiCgg+62 gjOK1eoPfTkqIoLvysVD+5TLsGroWkGTmC7GQhXjGp5mYTm3/7 t7h1JE2QzjIofSbi6Y6JzyDLVQsxLCnNRg5t5FGEg X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 2013-04-10 19:06:12 -0400, Tom Lane wrote: > I wrote: > > (Wanders away wondering just how much the regression tests exercise > > holdable cursors.) > > And the answer is they're not testing this code path at all, because if > you do > DECLARE c CURSOR WITH HOLD FOR ... > FETCH ALL FROM c; > then the second query executes with a portal (and resource owner) > created to execute the FETCH command, not directly on the held portal. > > After a little bit of thought I'm not sure it's even possible to > reproduce this problem with libpq, because it doesn't expose any way to > issue a bare protocol Execute command against a pre-existing portal. > (I had thought psqlOBC went through libpq, but maybe it's playing some > games here.) Hm. PQexecPrepared() looks like it can do that. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general