Re: Tricky bugs in concurrent index build

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Tricky bugs in concurrent index build
Дата
Msg-id 13942.1156299697@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Tricky bugs in concurrent index build  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> What would happen if we just insert DELETE_IN_PROGRESS tuples normally? Would
> the only risk be that the index build would fail with a spurious unique
> constraint violation? I suppose it would be pretty common though given how
> updates work.

Yeah, that's the problem: if we can't support UPDATEs that don't change
the to-be-unique column, it ain't much of a feature.

> Incidentally does this point out a problem with the planner depending on
> unique constraints?

Good point.  It doesn't depend on them yet, but we've been hoping to
make it do so once we have plan invalidation capability.  We shall have
to think very carefully about timing semantics of all that.
        regards, tom lane


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Tricky bugs in concurrent index build
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] COPY view