Re: 'Waiting on lock'

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: 'Waiting on lock'
Дата
Msg-id 20070530163345.GE7128@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: 'Waiting on lock'  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: 'Waiting on lock'  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Stephen Frost wrote:
> * Tom Lane (tgl@sss.pgh.pa.us) wrote:
> > Stephen Frost <sfrost@snowman.net> writes:
> > >   It'd be nice to have a NOTICE printed when a wait-on-lock takes longer
> > >   than a few seconds.
> > 
> > It'd be relatively painless to make that happen as part of the
> > deadlock-check timeout function, but that's typically only a one-second
> > delay not a "few seconds".  I think it'd likely be overly chatty.
> 
> Yeah, I wouldn't want one per second.

It's not one per second, it's after one second (actually
deadlock_timeout) has elapsed since you started to sleep waiting for a
lock.  If a deadlock is not detected the process won't be awakened
again.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 'Waiting on lock'
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: TOAST usage setting