Re: CLUSTER on partitioned index

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: CLUSTER on partitioned index
Дата
Msg-id CA+TgmoaDXBOs8Kh78LqqbS_qWpcfoLO6FzCQvBmTZ7D3yN3W6A@mail.gmail.com
обсуждение исходный текст
Ответ на CLUSTER on partitioned index  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
On Thu, Mar 31, 2022 at 6:54 AM Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> I realized after posting that we used to allow clustering toast tables,
> but after my changes we no longer do.  (Justin's version had a
> RELKIND_HAS_STORAGE test here instead, which seemed a little too lax.) I
> don't know why we allowed it and I don't know of anyone who has ever
> used that feature and we don't have any test coverage for it, but I
> don't have any reason to explicitly disallow it either.  So I propose to
> continue to allow it:

I think that's probably a good decision. It's certainly useful to have
a way to force a rewrite of a TOAST table, although a lot of people
who would benefit from that operation probably don't know that they
need it, or don't know that they need just that, and end up rewriting
both the main table and the TOAST table. Whether it's useful to be
able to run CLUSTER specifically rather than VACUUM FULL on the TOAST
table is less clear, but I don't think we're likely to save anything
by forbidding it. Maybe we should consider adding a test, though.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: Logical replication timeout problem
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Commitfest Update