Re: Examing cotets of NEW & OLD in a function programed in perl - Mailing list pgsql-general

From Tom Lane
Subject Re: Examing cotets of NEW & OLD in a function programed in perl
Date
Msg-id 6106.1583258340@sss.pgh.pa.us
Whole thread Raw
In response to Examing cotets of NEW & OLD in a function programed in perl  (stan <stanb@panix.com>)
Responses Re: Examing cotets of NEW & OLD in a function programed in perl  (stan <stanb@panix.com>)
List pgsql-general
stan <stanb@panix.com> writes:
> I need to write a generic function to process data before allowing the
> insert or update to continue.
> To do this, I need to be able to examine the NEW, and OLD structures
> without prior knowledge of the structure of the table that fired the
> trigger.

AFAIR, they're just hashes in Perl, so you should be able to do
stuff like iterating over the hash keys.

            regards, tom lane



pgsql-general by date:

Previous
From: stan
Date:
Subject: Re: Detecting which columns a query will modify in a function calledby a trigger
Next
From: Adrian Klaver
Date:
Subject: Re: Detecting which columns a query will modify in a function calledby a trigger