Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Uaa7R-0007VC-Ug for pgsql-bugs@arkaria.postgresql.org; Thu, 09 May 2013 23:19:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Uaa7R-0005eM-74 for pgsql-bugs@arkaria.postgresql.org; Thu, 09 May 2013 23:19:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Uaa7Q-0005eG-E6 for pgsql-bugs@postgresql.org; Thu, 09 May 2013 23:19:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Uaa7N-0001p3-Ny for pgsql-bugs@postgresql.org; Thu, 09 May 2013 23:19:24 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r49NJKLe009048; Thu, 9 May 2013 19:19:20 -0400 (EDT) From: Tom Lane To: jroller@rjobrien.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8143: Backend segmentation fault in pg_trgm In-reply-to: References: Comments: In-reply-to jroller@rjobrien.com message dated "Thu, 09 May 2013 21:28:41 -0000" Date: Thu, 09 May 2013 19:19:20 -0400 Message-ID: <9047.1368141560@sss.pgh.pa.us> X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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