Re: [HACKERS] Variable substitution in psql backtick expansion - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Variable substitution in psql backtick expansion
Date
Msg-id 23434.1510518105@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Variable substitution in psql backtick expansion  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: [HACKERS] Variable substitution in psql backtick expansion  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> [ psql-server-version-2.patch    ]

I think this patch should be rejected.  It adds no new functionality;
you can get the string in question with "select version()".  Moreover,
you've been able to do that for lo these many years.  Any application
that tried to depend on this new way of getting the string would fail
when working with an older server or older psql.  That does not seem
like a good property for a version check.  Also, because the string
isn't especially machine-friendly, it's not very clear to me what the
use-case is for an application to use it at all, rather than the other
version formats we already provide.
        regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: [HACKERS] PATCH: psql tab completion for SELECT
Next
From: Thomas Munro
Date:
Subject: Re: [HACKERS] LDAPS