Re: Make psql version aware; hide tablespace from older versions - Mailing list pgsql-patches

From Tom Lane
Subject Re: Make psql version aware; hide tablespace from older versions
Date
Msg-id 22183.1092097658@sss.pgh.pa.us
Whole thread Raw
In response to Re: Make psql version aware; hide tablespace from older versions  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-patches
"Greg Sabino Mullane" <greg@turnstep.com> writes:
> Would something like this be acceptable?:
> (int) PQversionNumber
> as a simple interface to the sversion variable?

I think "version" is a little too nonspecific.  We already have

extern int    PQprotocolVersion(const PGconn *conn);

so consistency would suggest

extern int    PQserverVersion(const PGconn *conn);

            regards, tom lane

pgsql-patches by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: Make psql version aware; hide tablespace from older versions
Next
From: Stefan Kaltenbrunner
Date:
Subject: Re: psql - missing tab-completion support for tablespaces