Re: Re: Buffer access rules, and a probable bug

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: Re: Buffer access rules, and a probable bug
Дата
Msg-id 3B43AA1C.F0A62AA1@tpf.co.jp
обсуждение исходный текст
Ответ на RE: Re: Buffer access rules, and a probable bug  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Ответы Re: Re: Buffer access rules, and a probable bug
Re: Re: Buffer access rules, and a probable bug
Список pgsql-hackers
Tom Lane wrote:
> 
> "Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
> > As for HeapTupleSatisfies() there seems to be another choise to
> > let HeapTupleSatisfiesAny() be equivalent to HeapTupleSatisfiesNow()
> > other than always returning true.
> 
> Wouldn't that break the other uses of SnapshotAny? 

In theory no because HeapTupleSatisfies...() only touches
hint bits. What I mean is to implement a new function
HeapTupleSatisfiesAny() as

bool
HeapTupleSatisfiesAny(HeapTupleHeader tuple)
{HeapTupleSatisfiesNow(tuple);return true;
}
.

> I'm not sure
> it's what nbtree.c wants, either, because then the heap_getnext
> call wouldn't return recently-dead tuples at all.
> 

nbtree.c has to see all(including dead) tuples and judge
if the tuples are alive, dead or removable via unified
time qualification.

regards,
Hiroshi Inoue


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CREATE TABLE .. PRIMARY KEY quirk
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: Buffer access rules, and a probable bug