Database name in the log - Mailing list pgsql-general

From Michal Táborský
Subject Database name in the log
Date
Msg-id 40D6B546.3080309@taborsky.cz
Whole thread Raw
Responses Re: Database name in the log
List pgsql-general
Is it possible to put a database name in slow query log? We have many
databases in our cluster and it is sometimes hard to quess which
database was the query run on.

We have:
2004-06-21 12:08:50 [89103] LOG:  00000: duration: 895.794 ms
statement: SELECT id FROM fragment [...query continues...]

I would like to have something like:

2004-06-21 12:08:50 [89103] [dbname] LOG:  00000: duration: 895.794 ms
statement: SELECT id FROM fragment [...query continues...]

Did I overlook something in the docs? Is it possible? And if not, take
it as a feature request :).

Thanks.

--
Michal Taborsky
http://www.taborsky.cz



pgsql-general by date:

Previous
From: Heiko Pohl
Date:
Subject: Problem while OS-Update
Next
From: Richard Huxton
Date:
Subject: Re: Limit connections per user