Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ4Ko-0000s9-B3 for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2013 23:21:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UQ4Kn-0003Mv-Lj for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2013 23:21:45 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ4Kk-0003Kx-SA for pgsql-general@postgresql.org; Wed, 10 Apr 2013 23:21:43 +0000 Received: from moutng.kundenserver.de ([212.227.17.8]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ4Ki-000338-Bn for pgsql-general@postgresql.org; Wed, 10 Apr 2013 23:21:42 +0000 Received: from anarazel.de (p5DDC610D.dip.t-dialin.net [93.220.97.13]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0Lla8x-1UyIx90YX1-00bHeN; Thu, 11 Apr 2013 01:21:32 +0200 Received: by anarazel.de (Postfix, from userid 1000) id 414B91C00F7; Thu, 11 Apr 2013 01:21:31 +0200 (CEST) Date: Thu, 11 Apr 2013 01:21:31 +0200 From: Andres Freund To: Tom Lane Cc: Joshua Berry , PostgreSQL - General Subject: Re: Segmentation fault with core dump Message-ID: <20130410232131.GD7547@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:Jagjh/EV21uk3kiLemZ8LlPKzEruKiI2MgEjrYP0kdb vY4t4HotxvEbv4Yg9b7CvNJ7TT+dGXQlT6TjBqqRj5wTFVLq13 Rmw8rDmwvm1sWzsbL0oQo4Xu63oB3Q64r4q5e/L13l1Li76Eak WDitMvwddFNvP0VCRWvb0kWgS7/qoxsnSj49+DGgOkLzw6L+NT 8wGACr9PFDXhHys7nBlggFd8bOxHQsQ/pp0Bc0MZd2KLxgvux2 Yb6Gr46ff8D7+OlHF2lKuRqFPcjVYN8tgpVFGd2nDsI9wXZRUw ev8YoFrtVTK8opgyL52RDf5QIhMkQ5NNXFuc2zAWXD6UqqtxzU 6iBrxCb62gLWWZUJTJm9GvgJGGqegbw0eTPN+JRSi 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. But in that path CurrentResourceOwner gets reset to portal->resowner as well (see PortalRunFetch())? 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