How to iterate fields into a NEW.* RECORD in a TRIGGER procedure ? - Mailing list pgsql-general

From Bruno Baguette
Subject How to iterate fields into a NEW.* RECORD in a TRIGGER procedure ?
Date
Msg-id 4CB6336B.3090706@gmail.com
Whole thread Raw
Responses Re: How to iterate fields into a NEW.* RECORD in a TRIGGER procedure ?  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-general
Hello !

I would like to write a PL/PGSQL trigger that will store changes (Table
name / Column name / primary key id / OLD value / NEW value) in several
tables.

As I said, this trigger must be usable for every table (it assumes that
theses table will have only one primary key).

In order to that, I have to iterate fields into the NEW.*
How can I do that iteration ?

Many thanks in advance for any tips !

Regards,

--
Bruno Baguette

pgsql-general by date:

Previous
From: Darren Duncan
Date:
Subject: Re: Adding a New Column Specifically In a Table
Next
From: Craig Ringer
Date:
Subject: Re: How to search ignoring spaces and minus signs