Re: find query beening executed

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: find query beening executed
Дата
Msg-id 29752.1256221193@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: find query beening executed  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-admin
Scott Marlowe <scott.marlowe@gmail.com> writes:
> Does it give full queries, even if they're long?  That would be really
> useful sometimes.

There is no mechanism other than pg_stat_activity for seeing what
another backend is currently doing.

In recent releases you can change track_activity_query_size to set the
cutoff point for truncation of pg_stat_activity's copy of the current
query.  This is a straight tradeoff of shared memory space against
capability, and I don't recommend raising the setting to the moon.
But certainly you can make it higher than the default 1K.

            regards, tom lane

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

Предыдущее
От: Lennin Caro
Дата:
Сообщение: Re: cursor problem
Следующее
От: David Jantzen
Дата:
Сообщение: Fwd: Reversing flow of WAL shipping