Re: BUG #18246: pgstathashindex() attempts to read invalid file for hash index attached to partitioned table

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #18246: pgstathashindex() attempts to read invalid file for hash index attached to partitioned table
Дата
Msg-id ZXm9Js8D_W_cFWzW@paquier.xyz
обсуждение исходный текст
Ответ на BUG #18246: pgstathashindex() attempts to read invalid file for hash index attached to partitioned table  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #18246: pgstathashindex() attempts to read invalid file for hash index attached to partitioned table  (Alexander Lakhin <exclusion@gmail.com>)
Список pgsql-bugs
On Wed, Dec 13, 2023 at 09:00:01AM +0000, PG Bug reporting form wrote:
> This anomaly can be observed since 8b08f7d48 from 2018-01-19, but IMO the
> culprit is e759854a0 from 2017-02-03, which introduced the following
> asymmetry in pgstatindex.c:
> if (!IS_INDEX(rel) || !IS_BTREE(rel))
> if (!IS_INDEX(rel) || !IS_GIN(rel))
> But:
> if (!IS_HASH(rel))

Fun, let's fix that.  Would you like to write a patch?
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #18241: PushTransaction may cause Standby to execute ItemIdMarkDead
Следующее
От: Alexander Lakhin
Дата:
Сообщение: Re: BUG #18246: pgstathashindex() attempts to read invalid file for hash index attached to partitioned table