Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKu2v-0004Ny-Us for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Jul 2015 20:03:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZKu2v-0004wU-8S for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Jul 2015 20:03:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZKu1c-0003SK-VL for pgsql-hackers@postgresql.org; Thu, 30 Jul 2015 20:01:57 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZKu1V-0006xI-Lf for pgsql-hackers@postgresql.org; Thu, 30 Jul 2015 20:01:55 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [179.57.24.220]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 3AB0D4010A4; Thu, 30 Jul 2015 13:01:43 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 8B53852C; Thu, 30 Jul 2015 17:01:40 -0300 (CLT) Date: Thu, 30 Jul 2015 17:01:40 -0300 From: Alvaro Herrera To: Kevin Grittner Cc: PostgreSQL-development Subject: Re: brin index vacuum versus transaction snapshots Message-ID: <20150730200140.GV2441@postgresql.org> References: <185774103.1833212.1437507758024.JavaMail.yahoo@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <185774103.1833212.1437507758024.JavaMail.yahoo@mail.yahoo.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Kevin Grittner wrote: > If you run `make installcheck` against a cluster with > default_transaction_isolation = 'repeatable read' you get one > failure: I am tempted to say that we should just disallow to run vacuum on a table containing a brin index in a transaction-snapshot transaction. It is possible to silence the problem by checking for vacuum flags, but (without testing) I think there will be a problem because the snapshot is acquired too early and it is possible for concurrent transactions to insert tuples in the table that the summarizing scan will not see, which will cause the index to become effectively corrupt. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers