Re: *sigh*

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: *sigh*
Дата
Msg-id 874qwmffqc.fsf@stark.dyndns.tv
обсуждение исходный текст
Ответ на Re: *sigh*  (Gaetano Mendola <mendola@bigfoot.com>)
Список pgsql-hackers
Gaetano Mendola <mendola@bigfoot.com> writes:

> The count(*) information can be revisioned too, am I wrong ? I'm able to
> create a trigger that store the count(*) information in a special table,
> why not implement the same in a way "builded in" ?

Then every insert or delete would have to lock that count. Nobody else would
be able to insert or delete any records until you either commit or roll back.

That would lead to much lower concurrency, much more contention for locks, and
tons of deadlocks.

-- 
greg



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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Patch queue
Следующее
От: Greg Stark
Дата:
Сообщение: Re: -fpic vs. -fPIC