Re: advancing snapshot's xmin

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: advancing snapshot's xmin
Дата
Msg-id 1206484813.32670.7.camel@goldbach
обсуждение исходный текст
Ответ на advancing snapshot's xmin  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: advancing snapshot's xmin  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Список pgsql-hackers
On Tue, 2008-03-25 at 17:26 -0300, Alvaro Herrera wrote:
> There is one hole here: contention on ProcArrayLock.  Basically, for
> simple transactions we will need to update MyProc after every command.

If we're just updating MyProc->xmin, we only need to acquire
ProcArrayLock in shared mode, right?

> Another idea is to throttle the updating of Xmin so it only happens once
> in a while, but it's difficult to find a useful criterion and avoid
> falling into the trap that we just neglected to update it before a large
> command.

Using LWLockConditionalAcquire() might help also.

-Neil




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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: advancing snapshot's xmin
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Text <-> C string