Re: pgsql: Avoid pin scan for replay of XLOG_BTREE_VACUUM

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-committers <pgsql-committers(at)postgresql(dot)org>
Subject: Re: pgsql: Avoid pin scan for replay of XLOG_BTREE_VACUUM
Date: 2016-01-09 17:58:01
Message-ID: CANP8+jJnGm71gd+HZZQ-GYepRV1nsqXsdJc842MmvcOzoOaw3g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 9 January 2016 at 12:23, Andres Freund <andres(at)anarazel(dot)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.

--
Simon Riggs http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-01-09 18:03:48 pgsql: Add STRICT to some C functions created by the regression tests.
Previous Message Andrew Dunstan 2016-01-09 17:00:58 Re: [COMMITTERS] pgsql: Blind attempt at a Cygwin fix

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-01-09 18:04:14 Re: [PATCH] Add STRICT to some regression test C functions.
Previous Message Artur Zakirov 2016-01-09 17:42:05 Re: [PROPOSAL] Improvements of Hunspell dictionaries support