| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера