From: Mauri Sahlberg <Mauri.Sahlberg@claymountain.com>
To: SAMTEK Consultores <adolfopa@samtek.es>
Cc: pgsql-admin@postgresql.org
Subject: Re: Registering all User Operations
Date: 26 Jan 2003 09:21:12 +0200
Message-ID: <1043565672.30963.36.camel@coredump.may.day> (raw)
In-Reply-To: <200301260103.h0Q13Ne17605@candle.pha.pa.us>
References: <200301260103.h0Q13Ne17605@candle.pha.pa.us>
On su, 2003-01-26 at 03:03, Bruce Momjian wrote:
> Uh, you can turn on log_statements in postgresql.conf and they will
> appear in the server logs.
>
> ---------------------------------------------------------------------------
>
Logging options are explained in the Administrator's manual at chapter
3.4.3. Adding the following to postgresql.conf should do the trick:
log_statament=true
syslog=2
I would also recommend using logrotate as your log will grow quite big
quite fast. Or if you are a looking for an audit log, I recommend doing
it in the application rather than trying to do it with the database logs
as quite propably the database user id is different than the application
user id.
> SAMTEK Consultores wrote:
> > Hi:
> >
> > I need to register all the operations (INSERT/UPDATE/DELETE) that users
> > does.
> >
> > Something like an log file for the backbone (like a /var/log/messages,
> > where all done is registered).
> >
> >
> > Can any help me?
> >
> > Thanks.
> >
> > --
> >
> > SAMTEK, Consultores Inform?tica y Telecomunicaciones
> > Calificado como Agente Tecnol?gico por la Consejer?a de Empleo y Desarrollo Tecnol?gico
> > RAITEC (Red Andaluza de Innovaci?n y Tecnolog?a)
> >
> > Adolfo M. Pach?n Rodr?guez
> > Director de Sistemas
> >
> > C/ Salado, Portal 11, Local 8
> > 41010 - Sevilla
> >
> > tlf: 95 428 6045
> > fax: 95 427 8500
> >
> > http://www.samtek.es
> > mailto://info@samtek.es
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: Have you checked our extensive FAQ?
> >
> > http://www.postgresql.org/users-lounge/docs/faq.html
> >
--
GSM: 044 5229238 | This message is probably digitally signed.
www.claymountain.com/~mos/ | Contact me to obtain my public key.
| I'm Microsoft incompatible.
Attachments:
signature.asc (application/pgp-signature, 188B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: Mauri.Sahlberg@claymountain.com, adolfopa@samtek.es
Subject: Re: Registering all User Operations
In-Reply-To: <1043565672.30963.36.camel@coredump.may.day>
References: <200301260103.h0Q13Ne17605@candle.pha.pa.us> <1043565672.30963.36.camel@coredump.may.day>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox