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

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: Make psql version aware; hide tablespace from older versions
Дата
Msg-id a871a08ba3fbd56a4bca6c4f727d19ea@biglumber.com
обсуждение исходный текст
Ответ на Re: Make psql version aware; hide tablespace from older versions  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Make psql version aware; hide tablespace from older versions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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@turnstep.com
PGP Key: 0x14964AC8 200408091920
-----BEGIN PGP SIGNATURE-----

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



В списке pgsql-patches по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Postgresql.conf Documentation change
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Make psql version aware; hide tablespace from older versions