pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jroller@rjobrien.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8143: Backend segmentation fault in pg_trgm
Date: Thu, 09 May 2013 19:19:20 -0400
Message-ID: <9047.1368141560@sss.pgh.pa.us> (raw)
In-Reply-To: <E1UaYOH-0008ON-Vn@wrigleys.postgresql.org>
References: <E1UaYOH-0008ON-Vn@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

jroller@rjobrien.com writes:
> We've come across a specific query and query plan that causes a repeatable
> segmentation fault on the postgresql backend.

Ah, I see it: gistrescan() is trying to preserve the per-scankey
fn_extra values to allow caching, but what it's doing does not work
if more than one scankey refers to the same consistentFn, ie, the
same index column.  A bit surprising we've not seen this before,
because I think that code has been like that for awhile.

Will fix, thanks for the report!

			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



view thread (3+ messages)  latest in thread

Message-ID: <9047.1368141560@sss.pgh.pa.us>
Permalink:  ../9047.1368141560@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9047.1368141560@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jroller@rjobrien.com
  Subject: Re: BUG #8143: Backend segmentation fault in pg_trgm
  In-Reply-To: <9047.1368141560@sss.pgh.pa.us>
  References: <E1UaYOH-0008ON-Vn@wrigleys.postgresql.org> <9047.1368141560@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