Re: BUG #18244: Corruption in indexes involving whole-row expressions

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: BUG #18244: Corruption in indexes involving whole-row expressions
Дата
Msg-id ce4165ffeac66281faa05cd9fc5ceabebe210af0.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: BUG #18244: Corruption in indexes involving whole-row expressions  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #18244: Corruption in indexes involving whole-row expressions  (Junwang Zhao <zhjwpku@gmail.com>)
Список pgsql-bugs
On Tue, 2023-12-12 at 23:04 -0500, Tom Lane wrote:
> Laurenz Albe <laurenz.albe@cybertec.at> writes:
> > Should we forbid composite types in index declarations?  Sounds posssible,
> > but very restrictive.
>
> That would make a lot of people very sad, I fear.
>
> I think a minimum answer could be to document that you might need to
> REINDEX such indexes after a change in the composite type.  We could
> perhaps try to be more proactive, say by marking such indexes invalid.
> I think though that that would have deadlock problems as well as race
> conditions.  Perhaps best to leave it at "reindex when necessary",
> especially in view of the tiny number of reports to date.

I agree.  How about the attached documentation patch?

Yours,
Laurenz Albe

Вложения

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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #18248: Expression is always zero
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: about psql copy ,we would like to seek help,Thanks.