Re: Why csvlog logs contexts without leading tab? - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Why csvlog logs contexts without leading tab?
Date
Msg-id D960CB61B694CF459DCFB4B0128514C20874B5BE@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Re: Why csvlog logs contexts without leading tab?  (hubert depesz lubaczewski <depesz@depesz.com>)
Responses Re: Why csvlog logs contexts without leading tab?  (hubert depesz lubaczewski <depesz@depesz.com>)
List 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

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: application for postgres Log
Next
From: Arvind Singh
Date:
Subject: PG Log MultiLine Records