aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-03-26 15:21:57 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-03-26 15:32:02 +0200
commit901b89e37bb8e71224ee76987679010ff3c93c05 (patch)
tree53e8156f6a64650c34c01f3de722ab540b613c5f /src/bin/psql
parentec143f94051779bb5d07419723529b4cc4fcce95 (diff)
downloadpostgresql-901b89e37bb8e71224ee76987679010ff3c93c05.tar.gz
postgresql-901b89e37bb8e71224ee76987679010ff3c93c05.zip
Get rid of obsolete parse_version helper function.
For getting the server's version in numeric form, use PQserverVersion(). It does the exact same parsing as dumputils.c's parse_version(), and has been around in libpq for a long time. For the client's version, just use the PG_VERSION_NUM constant.
Diffstat (limited to 'src/bin/psql')
-rw-r--r--src/bin/psql/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index c33f9446b20..33bc2a7e4c5 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -1708,7 +1708,7 @@ connection_warnings(bool in_startup)
{
if (!pset.quiet && !pset.notty)
{
- int client_ver = parse_version(PG_VERSION);
+ int client_ver = PG_VERSION_NUM;
if (pset.sversion != client_ver)
{