Re: Getting value of bind variables

Поиск
Список
Период
Сортировка
От Andy Colson
Тема Re: Getting value of bind variables
Дата
Msg-id 4E4E6D64.2090808@squeakycode.net
обсуждение исходный текст
Ответ на Re: Getting value of bind variables  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-general
On 8/19/2011 9:01 AM, Adrian Klaver wrote:
> On Friday, August 19, 2011 6:55:39 am Andy Colson wrote:
>>> As of now, I am trying with logging level set to debug5 in
>>> postgresql.conf for all logging options. But what is the 'correct'
>>> approach?
>>>
>>> Regards,
>>> Jayadevan
>>
>> Not sure what the exact setting is, try:
>>
>> log_statement = 'all'
>>
>> I've never set the log_min_messages or log_min_error_statement, and I'm
>> pretty sure I've seen values in my logs.
>
> If I remember correctly this is version specific, though I cannot remember what
> version the actual variables where made visible:(
>

Ah, yeah, you are probably right.

I can confirm in PG 9, with just

 >> log_statement = 'all'

I see things like:

DETAIL:  parameters: $1 = '%oak%'

in my log.

-Andy

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Getting value of bind variables
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Dump a database excluding one table DATA?