Re: pg_resetxlog sentences

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira <euler(at)timbira(dot)com(dot)br>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_resetxlog sentences
Date: 2015-09-17 15:38:44
Message-ID: 20150917153844.GX88970@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fujii Masao wrote:
> On Thu, Sep 17, 2015 at 5:00 AM, Alvaro Herrera
> <alvherre(at)2ndquadrant(dot)com> wrote:
> > Robert Haas wrote:
> >> On Tue, Sep 15, 2015 at 9:52 PM, Euler Taveira <euler(at)timbira(dot)com(dot)br> wrote:
> >> > While updating translations, I came across those almost similar sentences.
> >> >
> >> > pg_controldata.c
> >> >
> >> > 273 printf(_("Latest checkpoint's oldestCommitTs: %u\n"),
> >> > 274 ControlFile.checkPointCopy.oldestCommitTs);
> >> >
> >> > pg_resetxlog.c
> >> >
> >> > 668 printf(_("Latest checkpoint's oldest CommitTs: %u\n"),
> >> > 669 ControlFile.checkPointCopy.oldestCommitTs);
> >> > 670 printf(_("Latest checkpoint's newest CommitTs: %u\n"),
> >> > 671 ControlFile.checkPointCopy.newestCommitTs);
> >> >
> >> > To be consistent, let's change pg_resetxlog to mimic pg_controldata
> >> > sentence. Patch is attached. It is new in 9.5 so backpatch is needed.
> >>
> >> Seems like a good idea to me. Anyone disagree?
> >
> > OK with me.
>
> +1
>
> One relevant question is; why doesn't pg_controldata report newestCommitTs?

Most likely an oversight. As I recall, we added newestCommitTs in a
later version of the patch; we probably patched pg_controldata earlier
and then failed to realize that we needed to add the new field.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2015-09-17 15:40:27 Re: PATCH: index-only scans with partial indexes
Previous Message Jeff Janes 2015-09-17 15:31:30 Re: creating extension including dependencies