Re: advance local xmin more aggressively

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: advance local xmin more aggressively
Дата
Msg-id 24445.1234300287@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: advance local xmin more aggressively  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: advance local xmin more aggressively  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> For example, maybe we could keep track of counts of snapshots removed
> since the last xmin calculation, and only run this routine if the number
> is different from zero (or some small positive integer).

I think most of the callers of SnapshotResetXmin already know they
removed something.

It might be interesting for FreeSnapshot or something nearby to note
whether the snapshot being killed has xmin = proc's xmin, and only do
the update calculation if so.

I still dislike the assumption that all resource owners are children of
a known owner.  I suspect in fact that it's demonstrably wrong right
now, let alone in future (cf comments in PortalRun).  If we're going to
do this then snapmgr.c needs to track the snapshots for itself.  Of
course that's going to make the "is it worth it" question even more
pressing.
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: advance local xmin more aggressively
Следующее
От: "David Rowley"
Дата:
Сообщение: Bug #4284