From: Franco Bruno Borghesi <franco@akyasociados.com.ar>
To: Daniel Seichter <daniel@dseichter.de>
To: pgsql-admin@postgresql.org
Subject: Re: How log everything?
Date: Mon, 14 Apr 2003 18:50:15 -0300
Message-ID: <200304141850.15942.franco@akyasociados.com.ar> (raw)
In-Reply-To: <000301c302c3$a2c91030$0400a8c0@developer>
References: <000301c302c3$a2c91030$0400a8c0@developer>
you have to make some changes on the postgresql.conf file:
log_statements = true
log_timestamp = true
log_connections = true
server_min_messages defaults to notice, so any warning/error will be logged
too.
Of course, do a pg_ctl reload -mf for the postmaster to be aware of the
changes.
And remember to rotate your logs every day, as the log file will grow very
fast.
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 with
> 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
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: franco@akyasociados.com.ar, daniel@dseichter.de
Subject: Re: How log everything?
In-Reply-To: <200304141850.15942.franco@akyasociados.com.ar>
References: <000301c302c3$a2c91030$0400a8c0@developer> <200304141850.15942.franco@akyasociados.com.ar>
* 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