Re: HeapTupleSatisfiesToast() busted? (was atomic pin/unpin causing errors)
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: HeapTupleSatisfiesToast() busted? (was atomic pin/unpin causing errors) |
| Дата | |
| Msg-id | 22704.1462920915@sss.pgh.pa.us обсуждение |
| Ответ на | Re: HeapTupleSatisfiesToast() busted? (was atomic pin/unpin causing errors) (Andres Freund <andres@anarazel.de>) |
| Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes:
> On 2016-05-10 18:29:59 -0400, Tom Lane wrote:
>> Having said that, I still say that changing HeapTupleSatisfiesToast
>> is the wrong thing. It can't go deciding not to return toast values
>> because they're committed dead --- the parent tuple could easily be
>> committed dead as well, and yet still be visible to our query's
>> snapshot.
> Hm. Shouldn't a mvcc snapshot be able to differentiate between those
> cases?
HeapTupleSatisfiesToast doesn't have one. And changing things so that
toast tuples are checked using MVCC rules is the wrong thing anyway,
because it would require adding hint-bit update traffic for toast
tables.
> When are we looking up toast tuple that's *not* visible to the
> current snapshot?
Once again, it's the parent tuple where we should be doing the
visibility check; noplace else.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера