pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Simon Riggs <simon@2ndQuadrant.com>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Avoid pin scan for replay of XLOG_BTREE_VACUUM
Date: Sat, 9 Jan 2016 19:08:47 +0100
Message-ID: <20160109180847.hzsjrwlwvsbacfgs@alap3.anarazel.de> (raw)
In-Reply-To: <CANP8+jJnGm71gd+HZZQ-GYepRV1nsqXsdJc842MmvcOzoOaw3g@mail.gmail.com>
References: <E1aHqWV-0004Mo-C9@gemulon.postgresql.org>
	<20160109122355.ydzn4n5wwhe7objs@alap3.anarazel.de>
	<CANP8+jJnGm71gd+HZZQ-GYepRV1nsqXsdJc842MmvcOzoOaw3g@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 2016-01-09 17:58:01 +0000, Simon Riggs wrote:
> On 9 January 2016 at 12:23, Andres Freund <andres@anarazel.de> 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



view thread (14+ messages)  latest in thread

Message-ID: <20160109180847.hzsjrwlwvsbacfgs@alap3.anarazel.de>
Permalink:  ../20160109180847.hzsjrwlwvsbacfgs@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20160109180847.hzsjrwlwvsbacfgs@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, simon@2ndQuadrant.com
  Subject: Re: pgsql: Avoid pin scan for replay of XLOG_BTREE_VACUUM
  In-Reply-To: <20160109180847.hzsjrwlwvsbacfgs@alap3.anarazel.de>
  References: <E1aHqWV-0004Mo-C9@gemulon.postgresql.org> <20160109122355.ydzn4n5wwhe7objs@alap3.anarazel.de> <CANP8+jJnGm71gd+HZZQ-GYepRV1nsqXsdJc842MmvcOzoOaw3g@mail.gmail.com> <20160109180847.hzsjrwlwvsbacfgs@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox