Getting rid of ReferentialIntegritySnapshotOverride

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Getting rid of ReferentialIntegritySnapshotOverride
Дата
Msg-id 27513.1022346433@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-hackers
It occurs to me that we could get rid of the
ReferentialIntegritySnapshotOverride flag (which I consider both ugly
and dangerous) if we tweaked ExecutorStart to accept the snapshot-to-use
as a parameter.  Then RI queries could pass in SnapshotNow instead of
the normal query snapshot, and we'd not need a low-level hack anymore.

Since the RI triggers actually go through SPI, this'd mean offering
an alternate version of SPI_execp that allows specifying the snapshot,
but that seems no big problem.

Comments?

(I'm also wondering if we couldn't get rid of AMI_OVERRIDE, possibly
with a little bit of cleanup of bootstrapping...)
        regards, tom lane


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: strange update problem with 7.2.1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: strange update problem with 7.2.1