pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHow log everything?
2+ messages / 2 participants
[nested] [flat]
* How log everything?
@ 2003-04-14 20:22 Daniel Seichter <daniel@dseichter.de>
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Seichter @ 2003-04-14 20:22 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How log everything?
@ 2003-04-14 21:50 Franco Bruno Borghesi <franco@akyasociados.com.ar>
parent: Daniel Seichter <daniel@dseichter.de>
0 siblings, 0 replies; 2+ messages in thread
From: Franco Bruno Borghesi @ 2003-04-14 21:50 UTC (permalink / raw)
To: Daniel Seichter <daniel@dseichter.de>; 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@postgresql.org
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-04-14 21:50 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-14 20:22 How log everything? Daniel Seichter <daniel@dseichter.de>
2003-04-14 21:50 ` Franco Bruno Borghesi <franco@akyasociados.com.ar>
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