X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8E08D47580B for ; Mon, 14 Apr 2003 17:49:29 -0400 (EDT) Received: from lucifer.akyasociados.com.ar (unknown [200.69.203.237]) by postgresql.org (Postfix) with ESMTP id 6E3EE474E44 for ; Mon, 14 Apr 2003 17:49:28 -0400 (EDT) Received: from taz.oficina (taz.oficina [192.168.1.197]) (authenticated bits=0) by lucifer.akyasociados.com.ar (8.12.8/8.12.8) with ESMTP id h3ELqUeS045347; Mon, 14 Apr 2003 18:52:34 -0300 (ART) (envelope-from franco@akyasociados.com.ar) From: Franco Bruno Borghesi Organization: AK y Asociados S.R.L. To: "Daniel Seichter" , Subject: Re: How log everything? Date: Mon, 14 Apr 2003 18:50:15 -0300 User-Agent: KMail/1.5 References: <000301c302c3$a2c91030$0400a8c0@developer> In-Reply-To: <000301c302c3$a2c91030$0400a8c0@developer> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_X0ym+tvj2vio+ek"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200304141850.15942.franco@akyasociados.com.ar> X-Spam-Status: No, hits=-38.8 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/222 X-Sequence-Number: 8377 --Boundary-02=_X0ym+tvj2vio+ek Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline you have to make some changes on the postgresql.conf file: log_statements =3D true log_timestamp =3D true log_connections =3D true server_min_messages defaults to notice, so any warning/error will be logged= =20 too. Of course, do a pg_ctl reload -mf for the postmaster to be aware of the=20 changes.=20 And remember to rotate your logs every day, as the log file will grow very= =20 fast. =09 On Monday 14 April 2003 17:22, Daniel Seichter wrote: > Hello, > > How I can start postgeSQL 7.3.2 and log everything. With everything I mean > the following: > - all SQL statements which are executed (statusmessages if statement was > successfully or not) > - all logged users (with date when login) > - all error messages > > Everything with timestamps, so I can compare the errors and statements wi= th > the errorlog of my program. > > Is this possible? > > Thank you all in advanced > > Daniel Seichter > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org --Boundary-02=_X0ym+tvj2vio+ek Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+my0Xz/PwDAvtu7oRAi9PAJ9fjt4sxGUn2FjG7KyyUCeAOpcUoQCcDyC2 jI+VGTE672M1XMleklNswzw= =iDX0 -----END PGP SIGNATURE----- --Boundary-02=_X0ym+tvj2vio+ek--