Re: Corrupted btree index on HEAD because of covering indexes
От | Teodor Sigaev |
---|---|
Тема | Re: Corrupted btree index on HEAD because of covering indexes |
Дата | |
Msg-id | 40306ecc-495d-11f3-b7ea-2819d7babd7d@sigaev.ru обсуждение исходный текст |
Ответ на | Re: Corrupted btree index on HEAD because of covering indexes (Alexander Korotkov <a.korotkov@postgrespro.ru>) |
Ответы |
Re: Corrupted btree index on HEAD because of covering indexes
|
Список | pgsql-hackers |
> I tried to minimize Michael's test case and add it to patch. > > > -if (ItemPointerIsValid(leafhikey)) > +if (ItemPointerGetBlockNumberNoCheck(leafhikey) != InvalidBlockNumber) > > Should we use BTreeInnerTupleGetDownLink() as soon as we use > BTreeInnerTupleSetDownLink() for setting this? > Or even invent BTreeInnerTupleDownLinkIsValid() macro? I am not sure. Here we actually store UP link - to top parent to remove. I'm afraid using BTreeInnerTupleGetDownLink/BTreeInnerTupleSetDownLink could cause a confusion, in other hand, introducing TreeInnerTupleGetUpLink/BTreeInnerTupleSetUpLink seems over-engineering -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/
В списке pgsql-hackers по дате отправления: