Re: New variable server_version_num

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: New variable server_version_num
Дата
Msg-id 21507.1154223850@sss.pgh.pa.us
обсуждение исходный текст
Ответ на New variable server_version_num  (Greg Sabino Mullane <greg@turnstep.com>)
Ответы Re: New variable server_version_num  (David Fetter <david@fetter.org>)
Список pgsql-patches
Greg Sabino Mullane <greg@turnstep.com> writes:
> small patch to provide a new variable "server_version_num", which is
> almost the same as "server_version" but uses the handy PG_VERSION_NUM
> which allows apps to do things like if ($version >= 80200) without
> having to parse apart the value of server_version themselves.

This seems pretty useless, as it will be many years before any app that
actually tries to deal with back server versions could rely on the
variable existing.

The correct solution is for client-side libraries to provide the
feature.  libpq already does (PQserverVersion()) ... and it works
for any server version from about 6.4 forward ...

            regards, tom lane

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: [HACKERS] 8.2 features?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] pg_regress breaks on msys