Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ4M4-0000xT-MT for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2013 23:23:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UQ4M4-0004Bc-2b for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2013 23:23:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ4M2-0004Aj-M9 for pgsql-general@postgresql.org; Wed, 10 Apr 2013 23:23:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ4Lz-0000Ss-UN for pgsql-general@postgresql.org; Wed, 10 Apr 2013 23:23:02 +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 r3ANMvf7013469; Wed, 10 Apr 2013 19:22:57 -0400 (EDT) From: Tom Lane To: Andres Freund cc: Joshua Berry , PostgreSQL - General Subject: Re: Segmentation fault with core dump In-reply-to: <20130410231358.GC7547@awork2.anarazel.de> References: <20130410214929.GA7547@awork2.anarazel.de> <20130410222233.GB7547@awork2.anarazel.de> <20130410231358.GC7547@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 11 Apr 2013 01:13:58 +0200" Date: Wed, 10 Apr 2013 19:22:57 -0400 Message-ID: <13468.1365636177@sss.pgh.pa.us> X-Pg-Spam-Score: -4.3 (----) 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 Andres Freund writes: > Tom: It looks to me like printtup_prepare_info won't normally be called > in an held cursor. But if some concurrent DDL changed the number of > columns in typeinfo vs thaose in the the receiver that could explain the > issue and why its not seen all the time, right? It looks to me like there are probably two triggering conditions: 1. Client is doing a direct protocol Execute on a held-cursor portal. 2. Cache flush occurs to drop the syscache entries needed by getTypeOutputInfo. (Otherwise, they'd still be around from when the held cursor was created.) The first of these explains why we don't see it in the CLOBBER_CACHE_ALWAYS buildfarm runs, and the second one explains why Joshua is only seeing it intermittently and not every darn time his application does that. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general