indentifying the database in a Postgres log file.

From: Theo Galanakis <Theo(dot)Galanakis(at)lonelyplanet(dot)com(dot)au>
To: pgsql-performance(at)postgresql(dot)org
Subject: indentifying the database in a Postgres log file.
Date: 2004-12-15 23:48:06
Message-ID: 16C0CF355FA04944A69E5A4F5299D30B110E9C@ganesh.au.lpint.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Bruce Momjian 2004-12-16 00:09:09 Re: indentifying the database in a Postgres log file.
Previous Message Greg Stark 2004-12-15 22:53:19 Re: Partitioned table performance