Re: Index corruption

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Index corruption
Дата
Msg-id 23400.1151675754@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Index corruption  ("Marko Kreen" <markokr@gmail.com>)
Ответы Re: Index corruption  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-hackers
"Marko Kreen" <markokr@gmail.com> writes:
> The sl_log_* tables are indexed on xid, where the relations between
> values are not exactly stable.  When having high enough activity on
> one node or having nodes with XIDs on different enough positions
> funny things happen.

Yeah, that was one of the first things I thought about, but the range of
XIDs involved in these test cases isn't large enough to involve a
wraparound, and anyway it's now looking like the problem is loss of heap
entries, not index corruption at all.

Slony's use of XID comparison semantics for indexes is definitely pretty
scary though.  If I were them I'd find a way to get rid of it.  In
theory, since the table is only supposed to contain "recent" XIDs,
as long as you keep it vacuumed the index should never contain any
inconsistently-comparable XIDs ... but in a big index, the boundary keys
for upper-level index pages might hang around an awful long time ...
        regards, tom lane


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: mailing list problem ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Index corruption