Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2249A475F5F for ; Sun, 26 Jan 2003 02:15:02 -0500 (EST) Received: from kura.mail.jippii.net (kura.mail.jippii.net [195.197.172.113]) by postgresql.org (Postfix) with ESMTP id 4CA7E475E4D for ; Sun, 26 Jan 2003 02:15:01 -0500 (EST) Received: from coredump.may.day (crash.claymountain.com [62.142.127.138]) by kura.mail.jippii.net (Postfix) with ESMTP id 1C4081BDC8F; Sun, 26 Jan 2003 09:15:00 +0200 (EET) Subject: Re: Registering all User Operations From: Mauri Sahlberg To: SAMTEK Consultores Cc: pgsql-admin@postgresql.org In-Reply-To: <200301260103.h0Q13Ne17605@candle.pha.pa.us> References: <200301260103.h0Q13Ne17605@candle.pha.pa.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-N6R7yZv+91gicr0Kx1ij" Organization: Claymountain Solutions Oy Message-Id: <1043565672.30963.36.camel@coredump.may.day> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 26 Jan 2003 09:21:12 +0200 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/272 X-Sequence-Number: 7114 --=-N6R7yZv+91gicr0Kx1ij Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. >=20 > -------------------------------------------------------------------------= -- >=20 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=3Dtrue syslog=3D2 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.=20 > SAMTEK Consultores wrote: > > Hi: > >=20 > > I need to register all the operations (INSERT/UPDATE/DELETE) that users > > does. > >=20 > > Something like an log file for the backbone (like a /var/log/messages, > > where all done is registered). > >=20 > >=20 > > Can any help me? > >=20 > > Thanks. > >=20 > > --=20 > >=20 > > SAMTEK, Consultores Inform?tica y Telecomunicaciones > > Calificado como Agente Tecnol?gico por la Consejer?a de Empleo y Desar= rollo Tecnol?gico > > RAITEC (Red Andaluza de Innovaci?n y Tecnolog?a) > >=20 > > Adolfo M. Pach?n Rodr?guez > > Director de Sistemas > >=20 > > C/ Salado, Portal 11, Local 8 > > 41010 - Sevilla > >=20 > > tlf: 95 428 6045 > > fax: 95 427 8500 > >=20 > > http://www.samtek.es > > mailto://info@samtek.es > >=20 > >=20 > > ---------------------------(end of broadcast)--------------------------- > > TIP 5: Have you checked our extensive FAQ? > >=20 > > http://www.postgresql.org/users-lounge/docs/faq.html > >=20 --=20 GSM: 044 5229238 | This message is probably digitally signed. www.claymountain.com/~mos/ | Contact me to obtain my public key.=20 | I'm Microsoft incompatible.=20=20=20=20=20=20 --=-N6R7yZv+91gicr0Kx1ij Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA+M4xoCt7DIxI5XCsRAgppAKCdQKO9dX3JGKK6kHl8QTtnMEABMACdHx7W sci2n6eWsu3Y+zhTVQDIk0E= =iRdI -----END PGP SIGNATURE----- --=-N6R7yZv+91gicr0Kx1ij--