From: | Ricardo Bayley <ricardo(dot)bayley(at)gmail(dot)com> |
---|---|
To: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Trigger: Column Update |
Date: | 2010-11-12 18:26:16 |
Message-ID: | AANLkTimX5c9SoTjObcq7KvjzHFehW6tr3F30Q5WoW03E@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Will do that then
Thanks Guillaume
2010/11/12 Guillaume Lelarge <guillaume(at)lelarge(dot)info>:
> Le 12/11/2010 18:37, Ricardo Bayley a écrit :
>> Hi,
>>
>> I am wondering if there is a way to identify which columns have been
>> modified. Is there some sort of TG_TABLE_NAME, which states the
>> modified columns ?
>
> Nope. You should check yourself.
>
>> Or should we check this ourselves doing something like OLD.columnA !=
>> NEW.columnA ?
>
> Use IS DISTINCT OF instead of = to deal with NULL values.
>
>
> --
> Guillaume
> http://www.postgresql.fr
> http://dalibo.com
>
From | Date | Subject | |
---|---|---|---|
Next Message | Dinesh Bhandary | 2010-11-12 18:48:24 | Re: GUI ERD/ERM tools? |
Previous Message | Kevin Grittner | 2010-11-12 17:58:17 | Re: locales and encodings Oh MY! |