indentifying the database in a Postgres log file. - Mailing list pgsql-performance

From Theo Galanakis
Subject indentifying the database in a Postgres log file.
Date
Msg-id 16C0CF355FA04944A69E5A4F5299D30B110E9C@ganesh.au.lpint.net
Whole thread Raw
Responses Re: indentifying the database in a Postgres log file.
List pgsql-performance

I have written a program that parses a syslog file, reading all the postgres transactions. I would like to know if there is a way for postgres to log also the specific database the sql statement originated from.

The only options available in the postgresql.conf are:
#log_connections = false
#log_duration = false
#log_pid = false
#log_statement = false
#log_timestamp = false
#log_hostname = false
#log_source_port = false

Is this possible? Or is there a smart work around.

Regards,
        Theo

______________________________________________________________________
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright. If you
have received this email in error, please advise the sender and delete
it. If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone. You must not copy or
communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.

pgsql-performance by date:

Previous
From: Greg Stark
Date:
Subject: Re: Partitioned table performance
Next
From: Bruce Momjian
Date:
Subject: Re: indentifying the database in a Postgres log file.