Re: WIP patch - INSERT-able log statements
| От | Guillaume Smet |
|---|---|
| Тема | Re: WIP patch - INSERT-able log statements |
| Дата | |
| Msg-id | 1d4e0c10702190900q2d9ac9acr555f6d99615d0230@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: WIP patch - INSERT-able log statements (Alvaro Herrera <alvherre@commandprompt.com>) |
| Ответы |
Re: WIP patch - INSERT-able log statements
|
| Список | pgsql-patches |
On 2/19/07, Alvaro Herrera <alvherre@commandprompt.com> wrote:
> So add the session ID (%c) to log_line_prefix.
It could work if log_line_prefix was added before every line but it's
definitely not the case:
myuser mydb 45d9d615.4abe LOG: duration : 185.223 ms, statement : SELECT *
FROM lieu
LIMIT 10;
if you execute:
SELECT *
FROM lieu
LIMIT 10;
I worked a *lot* on query logging and I really didn't find any
solution to use stderr in a safe way, reason why I don't use it at all
and I don't recommend it (even if pgFouine supports it, it outputs a
warning as soon as the parser finds a multiline query).
--
Guillaume
В списке pgsql-patches по дате отправления: