Re: Change in logging behaviour between 8.1 and 8.2

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Ben Webber <ben(dot)webber(at)egsgroup(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org, Alexander Stanier <alexander(dot)stanier(at)egsgroup(dot)com>
Subject: Re: Change in logging behaviour between 8.1 and 8.2
Date: 2008-11-17 14:58:37
Message-ID: 20081117145837.GG4291@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ben Webber wrote:
> Hi,
>
> I wrote a shell script to find the duration and the related statement in the log file and place them one after the other if the duration is over a specified time like this:-
>
> 2008-10-31 02:00:49 GMT [23683] [mp_live] LOG: statement: CLUSTER;
> 2008-10-31 02:04:42 GMT [23683] [mp_live] LOG: duration: 232783.684 ms

I wonder if you'd benefit from doing CSV logs and then storing them into
a table. Querying using SQL is probably going to be easier (and more
robust -- it'd work even with embedded newlines etc).

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ben Webber 2008-11-17 15:18:56 Re: Change in logging behaviour between 8.1 and 8.2
Previous Message Anony Mous 2008-11-17 14:55:27 restore failure