Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 4E7E811E148E for ; Mon, 23 Jan 2012 01:57:11 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RpCtv-0001OU-3J for pgsql-bugs@postgresql.org; Mon, 23 Jan 2012 05:57:10 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RpCth-0008AD-3c for pgsql-bugs@postgresql.org; Mon, 23 Jan 2012 05:56:54 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RpCtg-0000E5-LI for pgsql-bugs@postgresql.org; Mon, 23 Jan 2012 05:56:52 +0000 Date: Mon, 23 Jan 2012 05:56:52 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6407: Crash on queries to gin index with multiply values To: pgsql-bugs@postgresql.org From: don@rosfirm.ru X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/149 X-Sequence-Number: 32216 The following bug has been logged on the website: Bug reference: 6407 Logged by: Yury Don Email address: don@rosfirm.ru PostgreSQL version: 9.1.2 Operating system: Linux (Debian) Description: = 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); 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');