Re: Make psql version aware; hide tablespace from older versions

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: Make psql version aware; hide tablespace from older versions
Date: 2004-08-09 23:19:29
Message-ID: a871a08ba3fbd56a4bca6c4f727d19ea@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> Also, I see no need to write your own code to get the server version.
> libpq already does this. It doesn't currently export an API to find it
> out, but I'd rather add that than have psql duplicate the effort.

Good point. I looked around, and not only is the code in libpq cleaner,
but it is duplicated in other applications (e.g. pg_dump). In the name
of not reinventing the wheel, I played around with making it available.
Would something like this be acceptable?:

(int) PQversionNumber

as a simple interface to the sversion variable?

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200408091920
-----BEGIN PGP SIGNATURE-----

iD8DBQFBGAbcvJuQZxSWSsgRAuuWAKDsWC2M2MqzXZV6Kx8ZQ+MnuosbUwCgukUt
NsXS8qGfUHNujPz8J2XsDqU=
=PsJs
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2004-08-09 23:54:47 Re: PITR on Win32 - Archive and Restore
Previous Message Mark Kirkwood 2004-08-09 23:14:28 Re: PITR on Win32 - Archive and Restore