Hi,Would you please provide the link to the section in the documentation that you are referring to because I'm new to PostgreSQL and I didn't know WHEN could be used outside of CASE and EXCEPTION blocks.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных