From: | Theo Galanakis <Theo(dot)Galanakis(at)lonelyplanet(dot)com(dot)au> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | logging |
Date: | 2004-10-01 06:54:03 |
Message-ID: | 82E30406384FFB44AFD1012BAB230B5505F40D1B@shiva.au.lpint.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
I'm currently logging postgres dubugging to syslogs and wanted to know if it
is possible to log which database each log entry is refering to? At the
moment it looks something like this :
Sep 30 02:49:59 tickle postgres[31285]: [31-1] LOG: statement: select *
from content_objects^M
Sep 30 02:49:59 tickle postgres[31285]: [31-2] ^I^I^I^Iwhere
content_object_id = ^M
Sep 30 02:49:59 tickle postgres[31285]: [31-3] ^I^I^I^I^I'680'
Sep 30 02:49:59 tickle postgres[31285]: [32-1] LOG: duration: 1.147 ms
I was thinking of perhaps looking at the table in the sql and trying to
match it up the information_schema.columns and obtain the database from
that! However I thought that if there was a debugging option available it
would save a heap of time.
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Tore Halset | 2004-10-01 08:12:28 | pg_dump/pg_restore trouble on win32 |
Previous Message | Cao Van Khanh | 2004-10-01 02:41:27 | Re: Compilation error with --with-java option |