Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aHxwm-0000RI-OC for pgsql-committers@arkaria.postgresql.org; Sat, 09 Jan 2016 18:09:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aHxwm-0008IT-9w for pgsql-committers@arkaria.postgresql.org; Sat, 09 Jan 2016 18:09:04 +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 1aHxwZ-00084F-TH for pgsql-committers@postgresql.org; Sat, 09 Jan 2016 18:08:51 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aHxwX-0005LJ-FG for pgsql-committers@postgresql.org; Sat, 09 Jan 2016 18:08:51 +0000 Received: from intern.anarazel.de (p57B4E309.dip0.t-ipconnect.de [87.180.227.9]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 6014D3A263A; Sat, 9 Jan 2016 19:08:48 +0100 (CET) Date: Sat, 9 Jan 2016 19:08:47 +0100 From: Andres Freund To: Simon Riggs Cc: pgsql-committers Subject: Re: pgsql: Avoid pin scan for replay of XLOG_BTREE_VACUUM Message-ID: <20160109180847.hzsjrwlwvsbacfgs@alap3.anarazel.de> References: <20160109122355.ydzn4n5wwhe7objs@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.2 (----) 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 On 2016-01-09 17:58:01 +0000, Simon Riggs wrote: > On 9 January 2016 at 12:23, Andres Freund wrote: > > > Hi, > > > > On 2016-01-09 10:13:27 +0000, Simon Riggs wrote: > > > src/backend/access/rmgrdesc/nbtdesc.c | 2 +- > > > > I've not reviewed the patch, but a very quick glance during a rebase > > with conflicts showed: > > > > @@ -48,7 +48,7 @@ btree_desc(StringInfo buf, XLogReaderState *record) > > { > > xl_btree_vacuum *xlrec = (xl_btree_vacuum *) rec; > > > > - appendStringInfo(buf, "lastBlockVacuumed %u", > > + appendStringInfo(buf, "lastBlockVacuumed %d", > > xlrec->lastBlockVacuumed); > > break; > > } > > > > which doesn't look right? > > > > It's right. New value of -1 allowed in that field, so change required to > allow it to display properly for debug. Uh. xl_btree_vacuum->lastBlockVacuumed is of type BlockNumber, which in turn is of type uint32. So no, this isn't correct as is. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers