From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Cc: | Craig Ringer <craig(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: pg_config --version-num |
Date: | 2017-05-31 03:49:08 |
Message-ID: | CAKFQuwbuLch51gJehE5aow8yzmG-J4rCLvmNy2TPQGVfbZSWeg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, May 30, 2017 at 6:36 PM, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
wrote:
> On Tue, May 30, 2017 at 6:14 PM, Craig Ringer <craig(at)2ndquadrant(dot)com>
> wrote:
> > Attached is a small patch to teach pg_config how to output a
> --version-num
> >
> > With Pg 10, parsing versions got more annoying. Especially with
> > "10beta1", "9.6beta2" etc into the mix. It makes no sense to force
> > tools and scripts to do this when we can just expose a sensible
> > pre-formatted one at no cost to us.
> >
> > Personally I'd like to backpatch this into supported back branches,
> > but just having it in pg 10 would be a help.
>
> The last threads treating about the same subject are here:
> https://www.postgresql.org/message-id/CAB7nPqTAdAJpX8iK4V3uYJbO2Kmo8
> rHzqJKDsLaDdranNrGX_A(at)mail(dot)gmail(dot)com
Tom's comment here:
"whereas adding a pg_config option
entails quite a lot of overhead (documentation, translatable help text,
yadda yadda)."
The proposed doesn't touch the first item and patch author's aren't
expected to handle the second. Not sure what all the rest entails...but I
cannot imagine it is a considerable amount of stuff that amounts to little
more than boilerplate text paralleling what is already out there for the
existing --version option. If someone is willing to do that I'd think we
should feel OK with the little bit of translation would that would need to
occur because of it.
The fact that this is even on the radar means that more than likely there
are sensible uses for this capability whether they've been adequately
presented or not. We don't have someone begging for help here but rather
ultimately a complete patch that can be committed and which would require
pretty much zero maintenance.
While I don't do it presently I could very well imagine value in being able
to inspect installed versions PostgreSQL, including patch levels, without
needing a running server process or the ability to login.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2017-05-31 03:49:41 | Re: [HACKERS] Channel binding support for SCRAM-SHA-256 |
Previous Message | Stephen Frost | 2017-05-31 03:41:50 | Re: Patch: Add --no-comments to skip COMMENTs with pg_dump |