Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNYFM-0001jS-7V for pgsql-committers@arkaria.postgresql.org; Fri, 07 Aug 2015 03:23:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZNYFL-00065i-PP for pgsql-committers@arkaria.postgresql.org; Fri, 07 Aug 2015 03:23:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZNYF8-0005sO-PG for pgsql-committers@postgresql.org; Fri, 07 Aug 2015 03:22:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZNYF0-0006o6-R3 for pgsql-committers@postgresql.org; Fri, 07 Aug 2015 03:22:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t773MdZ8019441; Thu, 6 Aug 2015 23:22:39 -0400 From: Tom Lane To: Alvaro Herrera , pgsql-committers@postgresql.org Subject: Re: pgsql: Fix BRIN to use SnapshotAny during summarization In-reply-to: <928.1438900846@sss.pgh.pa.us> References: <928.1438900846@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 06 Aug 2015 18:40:46 -0400" Date: Thu, 06 Aug 2015 23:22:39 -0400 Message-ID: <19440.1438917759@sss.pgh.pa.us> X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org ... btw, I believe the reason for the failure here: http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jaguarundi&dt=2015-08-06%2011%3A52%3A17 is that brin_page_items() is unsafe. It's accessing state->bdesc->bd_tupdesc, which is pointing at the tupdesc of an index Relation that it no longer has open; not only directly, but via brin_deform_tuple(). All you need is a relcache flush to be accessing garbage. I haven't dug down thoroughly, but I'd not be surprised if there were also some dereferences of bd_index, which is equally a dangling pointer. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers