| От | Tom Lane |
|---|---|
| Тема | Can we remove SnapshotSelf? |
| Дата | |
| Msg-id | 19046.1108937442@sss.pgh.pa.us обсуждение исходный текст |
| Ответы |
Re: Can we remove SnapshotSelf?
|
| Список | pgsql-hackers |
As of CVS tip, there is no code in the system that uses SnapshotSelf.
I am wondering if we can get rid of it and thereby save one test in
the heavily used HeapTupleSatisfiesVisibility() macro.
There is one place in the foreign-key triggers that uses the underlying
HeapTupleSatisfiesItself() test directly. So it seems possible that we
might someday need SnapshotSelf again as the representation of the
appropriate snapshot test for a foreign-key check. But I suspect that
any future changes in the FK stuff will go in the direction of using
dirty reads instead. In any case we could always put back SnapshotSelf
if we needed it.
Comments?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера