Re: getting rid of SnapshotNow

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: getting rid of SnapshotNow
Дата
Msg-id 15345.1374847846@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: getting rid of SnapshotNow  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Jul 26, 2013 at 9:18 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Robert Haas <robertmhaas@gmail.com> writes:
>>> Well, that's still used in _bt_check_unique, unique_key_recheck
>>> (trigger function to do a deferred uniqueness check), RI_FKey_check,
>>> and rather extensively by sepgsql.  I don't really have much desire to
>>> do the work to get rid of it, though.

>> Hm.  I agree the first three may be all right, but I can't help
>> suspecting that sepgsql is doing the wrong thing here.

> sepgsql is using SnapshotSelf to find the old version of a tuple that
> was updated by the core code just before.

Oh.  OK, then it reduces to the same case as the other three, ie we're
looking at tuples we know to be update-locked.

> [ interesting ruminations snipped ]

Yeah, removing SnapshotNow catalog access certainly opens the doors
for a lot of new thinking.
        regards, tom lane



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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Design proposal: fsync absorb linear slider
Следующее
От: Andres Freund
Дата:
Сообщение: Re: getting rid of SnapshotNow