Re: Corruption with IMMUTABLE functions in index expression.

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Corruption with IMMUTABLE functions in index expression.
Дата
Msg-id CAH2-Wzn69VjWpFzdrqJ7A8fZtS1YsnOEbgeWB5ynq0MazB4M_w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Corruption with IMMUTABLE functions in index expression.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Oct 11, 2021 at 9:27 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Yeah.  What is happening is that the function's SELECT on the subject
> table is trying to examine the not-yet-valid new index.  While that could
> be argued to be a bug, I share David's lack of interest in fixing it,
> because I do not believe that there are any cases where a function that
> accesses an index's subject table is really going to be immutable.

Right. It might be different if this was something that users
sometimes expect will work, based on some plausible-though-wrong
understanding of expression indexes. But experience suggests that they
don't.

-- 
Peter Geoghegan



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Corruption with IMMUTABLE functions in index expression.
Следующее
От: Mark Dilger
Дата:
Сообщение: Re: BUG #17212: pg_amcheck fails on checking temporary relations