Re: Logging of sql statements?

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: Logging of sql statements?
Дата
Msg-id 20060323132552.GG10166@webserv.wug-glas.de
обсуждение исходный текст
Ответ на Logging of sql statements?  (Bjørn T Johansen <btj@havleik.no>)
Ответы Re: Logging of sql statements?  (Bjørn T Johansen <btj@havleik.no>)
Список pgsql-general
am  23.03.2006, um 14:07:11 +0100 mailte Bjørn T Johansen folgendes:
> Is it possible to log the actual statement that the server runs? At the moment, the statement that is
> logged, is logged using ? for parameters; I would like to log the statement after the parameters have been
> substituted, isn't this possible in 8.1.x? (used to work in 7.x.x)

Yes, this is possible.

Set in your postgresql.conf:

log_statement = all

Since 8.0 oder 8.1, there you can see parameters in prepared statements.



HTH, Andreas
--
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47215,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    ===

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

Предыдущее
От: "Tass Chapman"
Дата:
Сообщение: Re: Old pg_xlog files
Следующее
От: Jimmy Rowe
Дата:
Сообщение: Re: delete my email from the list