Re: conditional logging based on client

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: conditional logging based on client
Дата
Msg-id 3289.1216840323@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: conditional logging based on client  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-admin
"Scott Marlowe" <scott.marlowe@gmail.com> writes:
> 2008/7/22 Rajesh Kumar Mallah <mallah.rajesh@gmail.com>:
>> any hit on performance is not desired.
>> is it possible to alter logging behaviour just for the
>> psql session ?

> Set log_statement='ddl' in your postgresql.conf and pgsql will log all
> ddl that hits the database.  It won't log other stuff, just the ddl.

I think the OP didn't want *all* sessions doing this but just selected
sessions; so ALTER USER ... SET log_statement, or possibly
ALTER DATABASE ... SET, would perhaps serve better.

            regards, tom lane

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

Предыдущее
От: "Igor Neyman"
Дата:
Сообщение: Re: Query a list of tables
Следующее
От: Marc Fromm
Дата:
Сообщение: -O to remove owner