Re: Determine server version from psql script - Mailing list pgsql-general

From David G. Johnston
Subject Re: Determine server version from psql script
Date
Msg-id CAKFQuwZGjMYbP0nWYb2+-D1a_dNg6b-mDhDC96Am-c2MZOYTNw@mail.gmail.com
Whole thread Raw
In response to Re: Determine server version from psql script  (Igor Korot <ikorot01@gmail.com>)
Responses Re: Determine server version from psql script
List pgsql-general
On Saturday, March 22, 2025, Igor Korot <ikorot01@gmail.com> wrote:


Is it actually running in psql?

Yes, i run "psql - d draft -a -f <filename>

Then read the psql docs.  Your version has \if and you’ll find server version listed as the available client variables.

David J.

pgsql-general by date:

Previous
From: Igor Korot
Date:
Subject: Re: Determine server version from psql script
Next
From: Igor Korot
Date:
Subject: Re: Determine server version from psql script