Hi, David,

On Sat, Mar 22, 2025, 8:58 PM David G. Johnston <david.g.johns...@gmail.com>
wrote:

> On Saturday, March 22, 2025, Igor Korot <ikoro...@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.
>

I was hoping for something like

If server_version >= X:
     CREATE OR REPLACE TRIGGER...
else:
     CREATE TRIGGER...

Python-like syntax here as I'm not sure how to do it properly...

Thank you.


> David J.
>
>

Reply via email to