Re: Why csvlog logs contexts without leading tab?

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: <depesz(at)depesz(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Why csvlog logs contexts without leading tab?
Date: 2012-09-21 10:25:09
Message-ID: D960CB61B694CF459DCFB4B0128514C20874B5BE@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

depesz wrote:
>> This makes automatic parsing of log files possible:
>> if a line starts with a tab, it is a continuation line.
>> The tab itself is not part of the message.

> why the tab isn't appended for other multi-line messages? like queries
> in LOG: duration: statement: lines?

I'm not sure what you mean...

I tried:

test=# SET log_min_duration_statement=0;
test=# SELECT 42,
test-# 'newline';

And got this in the log:

LOG: duration: 0.407 ms statement: SELECT 42,
'newline';

So there is a tab prepended.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Arvind Singh 2012-09-21 11:16:37 PG Log MultiLine Records
Previous Message Albe Laurenz 2012-09-21 10:17:51 Re: application for postgres Log