Re: WIP patch - INSERT-able log statements

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: WIP patch - INSERT-able log statements
Дата
Msg-id 20070219134806.GV9724@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: WIP patch - INSERT-able log statements  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Ответы Re: WIP patch - INSERT-able log statements  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Список pgsql-patches
Guillaume Smet escribió:
> On 2/19/07, Greg Smith <gsmith@gregsmith.com> wrote:
> >log_destination = 'stderr,sql'     # Valid values are combinations of
> >                     # stderr, syslog, sql, and eventlog,
> >                     # depending on platform.
>
> +1

Please don't do that.  We already have a "combined GUC option" that is
used to change two different things (DateStyle) and I regularly see
people confused about how to use it.

Also, "sql" is not really a destination -- it is a format.  Maybe have a
"format=plain,sql" GUC var is best: plain format is logged as currently,
and SQL format is logged somewhere else (maybe use the same name, and
stash a .sql suffix to the filename, or use .sql.log).  That way you can
choose to have one or the other, or both if you're really dumb.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: further bootstrap cleanup
Следующее
От: "Guillaume Smet"
Дата:
Сообщение: Re: WIP patch - INSERT-able log statements