Re: postgresql statements are waiting

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: postgresql statements are waiting
Дата
Msg-id 4CF4D7850200002500037F87@gw.wicourts.gov
обсуждение исходный текст
Ответ на postgresql statements are waiting  (bakkiya <bakkiya@gmail.com>)
Список pgsql-performance
bakkiya <bakkiya@gmail.com> wrote:

> I am working on a performance issue with a partitioned table. Some
> of my sql statements against this partition table is in waiting
> state for long time. I have queried waiting=true in
> pg_stat_activity. Now, is there a way to find out which sql is
> making other statements to wait.

You probably need to take a look at pg_locks for details.  If you
combine information from pg_locks, pg_stat_activity, and pg_class,
you can get a pretty good idea what's up.

-Kevin

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: tidscan not work ? Pg 8.4.5 + WinXP
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: postgresql statements are waiting