From: | "Merlin Moncure" <mmoncure(at)gmail(dot)com> |
---|---|
To: | "Marco Serantoni" <m(dot)serantoni(at)caltanet(dot)it> |
Cc: | pgsql-hackers(at)postgresql(dot)org, "PgSQL General" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Database Auditing |
Date: | 2006-10-12 13:17:15 |
Message-ID: | b42b73150610120617x72e8281k8733bfe59735b624@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On 10/12/06, Marco Serantoni <m(dot)serantoni(at)caltanet(dot)it> wrote:
> >> I'm evaluating of use postgresql but for local law requirements is
> >> needed for the access of some kind of data (sensitive) a log of the
> >> accesses (Auditing) is a feature available in many databases but i've
> >> seen that lacks in PostgreSQL, there are already plans to implement it
> >> or patches already submitted ?
> >> If not both could someone give me some hints on how do it
> > we can probably come up with something. can you please give specific
> > requirements about what type of information you have to keep track of?
> username, date and statement executed and optionally the IP.
[moving this discussion to -general] please direct responses to that list only]
have you looked at postgreql.conf? you can log all of those things
and much more into the postgresql log. There is also built in
rotation and retention policies.
most especially,
log_statement = 'all'
now for fancy stuff, like logging of application data or other things
like that, you can do many things with triggers. It is possible to
write triggers that are pretty generic which can do that type of
thing.
merlin
From | Date | Subject | |
---|---|---|---|
Next Message | Rob Richardson | 2006-10-12 13:17:44 | Can a function determine whether a primary key constraint exists on a table? |
Previous Message | pobox@verysmall.org | 2006-10-12 13:16:39 | Re: plpgsql handling a set of values |
From | Date | Subject | |
---|---|---|---|
Next Message | Jim C. Nasby | 2006-10-12 13:17:38 | Re: On status data and summaries |
Previous Message | Martijn van Oosterhout | 2006-10-12 13:06:35 | Re: Hints WAS: Index Tuning Features |