From: | Mike Benoit <mikeb(at)netnation(dot)com> |
---|---|
To: | Andrew Gould <andrewgould(at)yahoo(dot)com> |
Cc: | Postgres Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: capturing and storing query statement with rules |
Date: | 2003-06-24 21:27:29 |
Message-ID: | 1056490048.8619.40.camel@mikeb.staff.netnation.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
http://gborg.postgresql.org/project/tablelog/download/download.php
or
http://gborg.postgresql.org/project/audittrail/download/download.php?branch=devel
I haven't used either, but table_log seems to be one that I may start
using in the near future.
On Tue, 2003-06-24 at 13:17, Andrew Gould wrote:
> I would like to create a audit log of update and
> delete queries against a table. I want the log on the
> server side, since access will be done using various
> clients via ODBC. I would like to capture the user,
> current datetime and the query statement. My thought
> was to accomplish this by creating a rule that will
> insert the information into a log table.
>
> How can I captures the query statement so that I can
> place it in a insert query? Is there a variable in
> the server that holds the query statement as a string?
>
> Am I about to go in over my head (again)?
>
> Thanks,
>
> Andrew
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
--
Best Regards,
Mike Benoit
NetNation Communications Inc.
Systems Engineer
Tel: 604-684-6892 or 888-983-6600
---------------------------------------
Disclaimer: Opinions expressed here are my own and not
necessarily those of my employer
From | Date | Subject | |
---|---|---|---|
Next Message | scott.marlowe | 2003-06-24 21:27:51 | Re: server layout |
Previous Message | Jonathan Bartlett | 2003-06-24 21:26:50 | Re: Alternative replication method. |
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Pflug | 2003-06-24 21:45:13 | Re: pg_get_triggerdef in pg_dump |
Previous Message | Larry Rosenman | 2003-06-24 21:13:31 | Re: [GENERAL] capturing and storing query statement with |