Re: Why csvlog logs contexts without leading tab?

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Why csvlog logs contexts without leading tab?
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C20874B5BE@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Why csvlog logs contexts without leading tab?  (hubert depesz lubaczewski <depesz@depesz.com>)
Ответы Re: Why csvlog logs contexts without leading tab?
Список 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 по дате отправления:

Предыдущее
От: "Albe Laurenz"
Дата:
Сообщение: Re: application for postgres Log
Следующее
От: Arvind Singh
Дата:
Сообщение: PG Log MultiLine Records