pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Joshua Berry <yoberi@gmail.com>
Cc: PostgreSQL - General <pgsql-general@postgresql.org>
Subject: Re: Segmentation fault with core dump
Date: Wed, 10 Apr 2013 19:22:57 -0400
Message-ID: <13468.1365636177@sss.pgh.pa.us> (raw)
In-Reply-To: <20130410231358.GC7547@awork2.anarazel.de>
References: <CAPmZXM03MEDEn6nqqf_Phs3M1DK-EaXP5_K-LmirneOJMAQ-Hg@mail.gmail.com>
	<20130410214929.GA7547@awork2.anarazel.de>
	<CAPmZXM2AV1D1_grC7pwg8WH4L-cTqcDEWOC2VneG2X8OHLxdsw@mail.gmail.com>
	<20130410222233.GB7547@awork2.anarazel.de>
	<CAPmZXM3N0V68b1=kRk2pB3Nr-E_Me_urLJ6Cb-XWEkrGwwiFRg@mail.gmail.com>
	<20130410231358.GC7547@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

Andres Freund <andres@2ndquadrant.com> 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



view thread (32+ messages)  latest in thread

Message-ID: <13468.1365636177@sss.pgh.pa.us>
Permalink:  ../13468.1365636177@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13468.1365636177@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, yoberi@gmail.com
  Subject: Re: Segmentation fault with core dump
  In-Reply-To: <13468.1365636177@sss.pgh.pa.us>
  References: <CAPmZXM03MEDEn6nqqf_Phs3M1DK-EaXP5_K-LmirneOJMAQ-Hg@mail.gmail.com> <20130410214929.GA7547@awork2.anarazel.de> <CAPmZXM2AV1D1_grC7pwg8WH4L-cTqcDEWOC2VneG2X8OHLxdsw@mail.gmail.com> <20130410222233.GB7547@awork2.anarazel.de> <CAPmZXM3N0V68b1=kRk2pB3Nr-E_Me_urLJ6Cb-XWEkrGwwiFRg@mail.gmail.com> <20130410231358.GC7547@awork2.anarazel.de> <13468.1365636177@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox