X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 206F032A343 for ; Fri, 1 Oct 2004 09:39:31 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 07649-02 for ; Fri, 1 Oct 2004 08:39:25 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id B217F32A33E for ; Fri, 1 Oct 2004 09:39:27 +0100 (BST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i918dN5a008352 for ; Fri, 1 Oct 2004 08:39:23 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i918bfix007816 for pgsql-admin@postgresql.org; Fri, 1 Oct 2004 08:37:41 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.admin Subject: Re: logging Date: Fri, 01 Oct 2004 10:37:21 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 25 Message-ID: <415D1741.3010006@bigfoot.com> References: <82E30406384FFB44AFD1012BAB230B5505F40D1B@shiva.au.lpint.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: Theo Galanakis User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en In-Reply-To: <82E30406384FFB44AFD1012BAB230B5505F40D1B@shiva.au.lpint.net> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/4 X-Sequence-Number: 14998 Theo Galanakis wrote: > 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. Unfortunately I have to say that is impossible to do it for version < 8.0 ( that BTW is still in beta phase ). Regards Gaetano Mendola