pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: don@rosfirm.ru
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6407: Crash on queries to gin index with multiply values
Date: Mon, 23 Jan 2012 01:39:26 -0500
Message-ID: <4354.1327300766@sss.pgh.pa.us> (raw)
In-Reply-To: <E1RpCtg-0000E5-LI@wrigleys.postgresql.org>
References: <E1RpCtg-0000E5-LI@wrigleys.postgresql.org>

don@rosfirm.ru writes:
> When making "in" query to fiels with gin index, server crashes. Below 
> create table tmp(id serial not null primary key, f1 integer, f2 text);
> insert into tmp (f1,f2) values (1,'a'),(2,'b'),(3,'c');
> create index tmp_f1_idx on tmp using gin (f1);
> create index tmp_f2_idx on tmp using gin (f2);

I assume you've got contrib/btree_gin installed?  Because in a bare
server those CREATE INDEX commands wouldn't work at all.

> set enable_seqscan to off;
> select * from tmp where f1 in (1, 2);
> After this query server chrashes:
> server process (PID ...) was terminated by signal 11: Segmentation fault
> The same after query on text field:
> select * from tmp where f2 in ('a', 'd');

FWIW, works for me.  Do you have any nonstandard settings that might
affect this?  Is it possible you've got a copy of btree_gin.so that
isn't compatible with your server?

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <4354.1327300766@sss.pgh.pa.us>
Permalink:  ../4354.1327300766@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4354.1327300766@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, don@rosfirm.ru
  Subject: Re: BUG #6407: Crash on queries to gin index with multiply values
  In-Reply-To: <4354.1327300766@sss.pgh.pa.us>
  References: <E1RpCtg-0000E5-LI@wrigleys.postgresql.org> <4354.1327300766@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