| From: | Richard Huxton <dev(at)archonet(dot)com> |
|---|---|
| To: | "Edwin S(dot) Ramirez" <ramirez(at)lwbeyond(dot)net> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Help! Record logging |
| Date: | 2001-05-19 11:59:49 |
| Message-ID: | 3B066036.9A823B8E@archonet.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Huxton | 2001-05-19 12:07:08 | Re: HELP: what's wrong with my PL/PSQL function?? |
| Previous Message | Mikheev, Vadim | 2001-05-19 00:28:48 | RE: [HACKERS] Re: possible row locking bug in 7.0.3 & 7.1 |