Re: findDependentObjects() mutual exclusion vs. MVCC catalog scans

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: findDependentObjects() mutual exclusion vs. MVCC catalog scans
Дата
Msg-id 11946.1373988948@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: findDependentObjects() mutual exclusion vs. MVCC catalog scans  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: findDependentObjects() mutual exclusion vs. MVCC catalog scans  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Tue, Jul 16, 2013 at 9:50 AM, Noah Misch <noah@leadboat.com> wrote:
>> Let's fix this by having systable_recheck_tuple() acquire a fresh catalog MVCC
>> snapshot and recheck against that.  I believe it would also be fully safe to
>> use SnapshotNow here; however, I'm assuming we would otherwise manage to
>> remove SnapshotNow entirely.

I agree with Robert's comments, and in addition suggest that this code
needs a comment about why it's safe to use the snapshot without doing
RegisterSnapshot or equivalent.
        regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: findDependentObjects() mutual exclusion vs. MVCC catalog scans
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: make dist error