Re: select version() with internal number version? - Mailing list pgsql-general

From Tom Lane
Subject Re: select version() with internal number version?
Date
Msg-id 26144.1533822711@sss.pgh.pa.us
Whole thread Raw
In response to Re: select version() with internal number version?  (Wèi Cōngruì <crvv.mail@gmail.com>)
Responses Re: select version() with internal number version?
List 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 by date:

Previous
From: hmidi slim
Date:
Subject: postgresql-10-pldebugger in alpine linux distribution
Next
From: Bruce Momjian
Date:
Subject: Re: Convert Existing Table to a Partition Table in PG10