From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Joe Conway <mail(at)joeconway(dot)com> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Josh Berkus <josh(dot)berkus(at)pgexperts(dot)com> |
Subject: | Re: exposing pg_controldata and pg_config as functions |
Date: | 2016-01-16 14:02:49 |
Message-ID: | CAB7nPqSGhav1egJ0k2-0m-va8wCQpnEdkR0eMThRHY0+nzVqXQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Dec 30, 2015 at 9:08 AM, Joe Conway <mail(at)joeconway(dot)com> wrote:
> 1) Change NextXID output format from "%u/%u" to "%u:%u"
> (see recent hackers thread)
! printf(_("Latest checkpoint's NextXID: %u/%u\n"),
ControlFile.checkPointCopy.nextXidEpoch,
ControlFile.checkPointCopy.nextXid);
printf(_("Latest checkpoint's NextOID: %u\n"),
--- 646,652 ----
ControlFile.checkPointCopy.ThisTimeLineID);
printf(_("Latest checkpoint's full_page_writes: %s\n"),
ControlFile.checkPointCopy.fullPageWrites ? _("on") : _("off"));
! printf(_("Latest checkpoint's NextXID: %u:%u\n"),
This should be definitely a separate patch.
> 2) Refactor bin/pg_controldata (there should be no visible change to
> pg_controldata output)
> 3) Adds new functions, more or less in line with previous discussions:
> * pg_checkpoint_state()
> * pg_controldata_state()
> * pg_recovery_state()
> * pg_init_state()
Taking the opposite direction of Josh upthread, why is this split
actually necessary? Isn't the idea to provide a SQL interface of what
pg_controldata shows? If this split proves to be useful, shouldn't we
do it as well for pg_controldata?
> ===============
> Missing (TODO once agreement on the above is reached):
> ---------------
> a) documentation
This would be good to have.
> b) catversion bump
That's committer work.
> c) regression tests
Hm, what would be the value of those tests? I think we could live
without for simple functions like that honestly.
I think that those functions should be superuser-only. They provide
information about the system globally.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2016-01-16 14:07:20 | Re: exposing pg_controldata and pg_config as functions |
Previous Message | Michael Paquier | 2016-01-16 13:50:00 | Re: |