Re: How log everything?

From: Franco Bruno Borghesi <franco(at)akyasociados(dot)com(dot)ar>
To: "Daniel Seichter" <daniel(at)dseichter(dot)de>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: How log everything?
Date: 2003-04-14 21:50:15
Message-ID: 200304141850.15942.franco@akyasociados.com.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(at)postgresql(dot)org

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2003-04-15 01:17:35 Re: compile version 7.3.2 --with-CXX
Previous Message Daniel Seichter 2003-04-14 20:22:46 How log everything?