Re: select version() with internal number version?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: select version() with internal number version?
Дата
Msg-id 26144.1533822711@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: select version() with internal number version?  (Wèi Cōngruì <crvv.mail@gmail.com>)
Ответы Re: select version() with internal number version?
Список pgsql-general
=?UTF-8?B?V8OoaSBDxY1uZ3J1w6w=?= <crvv.mail@gmail.com> writes:
> On Thu, Aug 9, 2018 at 3:01 PM Luca Ferrari <fluca1978@gmail.com> wrote:
>> Is there any way to get directly the PostgreSQL version number?

> SHOW server_version;
> SHOW server_version_num;

Also, if you're using libpq, see PQserverVersion() which
(a) avoids a round trip to the server, and (b) works further back
than server_version_num, though that issue is probably academic
to most folk at this point (server_version_num appeared in 8.2).

            regards, tom lane


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

Предыдущее
От: hmidi slim
Дата:
Сообщение: postgresql-10-pldebugger in alpine linux distribution
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Convert Existing Table to a Partition Table in PG10