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

From Christophe Pettus
Subject Re: Determine server version from psql script
Date
Msg-id B40C1523-D5D8-41FA-A795-05B6D495E794@thebuild.com
Whole thread Raw
In response to Re: Determine server version from psql script  (Igor Korot <ikorot01@gmail.com>)
List pgsql-general

> On Mar 23, 2025, at 18:08, Igor Korot <ikorot01@gmail.com> wrote:
>     CREATE TRIGGER playersinleague_insert AFTER INSERT ON playersinleague WHEN new.current_rank IS NULL

The WHEN predicate has to be enclosed in parenthes:

    CREATE TRIGGER playersinleague_insert AFTER INSERT ON playersinleague WHEN ( new.current_rank IS NULL )


pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Determine server version from psql script
Next
From: Marcelo Fernandes
Date:
Subject: Best way to check if a table is empty