Re: Determine server version from psql script

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Determine server version from psql script
Date: 2025-03-23 01:58:50
Message-ID: CAKFQuwZGjMYbP0nWYb2+-D1a_dNg6b-mDhDC96Am-c2MZOYTNw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Saturday, March 22, 2025, Igor Korot <ikorot01(at)gmail(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igor Korot 2025-03-23 02:28:14 Re: Determine server version from psql script
Previous Message Igor Korot 2025-03-23 01:47:05 Re: Determine server version from psql script