Re: ANALYZE locks pg_listener in EXCLUSIVE for long time?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ANALYZE locks pg_listener in EXCLUSIVE for long time?
Дата
Msg-id 4310.1083555969@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ANALYZE locks pg_listener in EXCLUSIVE for long  (Philip Warner <pjw@rhyme.com.au>)
Ответы Re: ANALYZE locks pg_listener in EXCLUSIVE for long
Список pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> If possible, this seems like a great option. We currently have a large 
> database with several hundred users who get locked out for as much as half 
> an hour while ANALYZE runs.

If it takes half an hour to ANALYZE pg_listener, I think that ANALYZE is
not your real problem :-(.  You need a much more aggressive vacuuming
policy on that table.  Maybe a cron job issuing "vacuum pg_listener"
once a minute would do?  And get the size of the table knocked down to
something less stratospheric to begin with --- perhaps stop all the
listeners while you TRUNCATE the table.

The existing listen/notify infrastructure isn't really designed for
notification rates exceeding a few events per minute ...
        regards, tom lane


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

Предыдущее
От: Philip Warner
Дата:
Сообщение: Re: ANALYZE locks pg_listener in EXCLUSIVE for long
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ANALYZE locks pg_listener in EXCLUSIVE for long time?