Re: Help! Record logging

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Help! Record logging
Дата
Msg-id 3B066036.9A823B8E@archonet.com
обсуждение исходный текст
Ответ на Help! Record logging  ("Edwin S. Ramirez" <ramirez@lwbeyond.net>)
Список pgsql-sql
"Edwin S. Ramirez" wrote:
> 
> Hello,
> 
>     I would like to setup a trigger to keep track of all changes done
> onto the records of paticular tables.

Check my PostgreSQL Notes on techdocs.postgresql.org - there's an
example in there. Might be worth checking Roberto Mello's postgresql
cookbook too (same place).
>     The only other difficulty is how do I let the trigger know the ID of
> the user deleting the record?

SELECT CURRENT_USER sounds like what you want.

- Richard Huxton


В списке pgsql-sql по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: HELP: what's wrong with my PL/PSQL function??
Следующее
От: Tom Lane
Дата:
Сообщение: Re: HELP: what's wrong with my PL/PSQL function??