Re: PLPGSQL - extra column existence in trigger - Mailing list pgsql-general

From David G. Johnston
Subject Re: PLPGSQL - extra column existence in trigger
Date
Msg-id CAKFQuwbEbnpexHDEz+PE7C+gDp1S6_Kkq+YVKO_0Qa09tx=RdA@mail.gmail.com
Whole thread Raw
In response to PLPGSQL - extra column existence in trigger  (Durumdara <durumdara@gmail.com>)
Responses Re: PLPGSQL - extra column existence in trigger
Re: PLPGSQL - extra column existence in trigger
List pgsql-general
On Saturday, May 7, 2022, Durumdara <durumdara@gmail.com> wrote:


So is there any syntax to not fall on missing columns?

No.  I’d probably approach this by generically converting the NEW record to json and working with that.  Non-existent object keys return null when accessed.

David J. 

pgsql-general by date:

Previous
From: Hasan Marzooq
Date:
Subject: Re: pg_dump: VACUUM and REINDEXING
Next
From: Guillaume Lelarge
Date:
Subject: Re: pg_dump: VACUUM and REINDEXING