Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 1DEC51410E26 for ; Mon, 23 Jan 2012 02:39:41 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RpDZ5-0005bD-PC for pgsql-bugs@postgresql.org; Mon, 23 Jan 2012 06:39:41 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q0N6dQ3s004355; Mon, 23 Jan 2012 01:39:26 -0500 (EST) To: don@rosfirm.ru cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6407: Crash on queries to gin index with multiply values In-reply-to: References: Comments: In-reply-to don@rosfirm.ru message dated "Mon, 23 Jan 2012 05:56:52 +0000" Date: Mon, 23 Jan 2012 01:39:26 -0500 Message-ID: <4354.1327300766@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/150 X-Sequence-Number: 32217 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