Re: fix log_min_duration_statement logic error

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: fix log_min_duration_statement logic error
Дата
Msg-id 1065380730.23288.190.camel@jester
обсуждение исходный текст
Ответ на Re: fix log_min_duration_statement logic error  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: fix log_min_duration_statement logic error  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
> > I have not heard from you why we should make it harder (split across two
> > lines), except for consistency with log_statement and log_duration
> > outputs.

I think this is a perfectly good argument. Don't make writing the tools
to parse the log more difficult than necessary.

Rather than making the log files look nice, lets add a module to PgAdmin
that can read it and display it in a user friendly manner (with
abilities like sorting queries by execution time!).

> Should we instead convert newlines to "\n" and output the query as a
> single line?  Do we have lots of other multi-line outputs in the log
> files?

Please don't. Or if you do, don't data unless you intend to escape
special characters (in this case \) at the same time so we can convert
it back to the original state.

Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: fix log_min_duration_statement logic error
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: fix log_min_duration_statement logic error