Re: Correct docs re: rewriting indexes when table rewrite is skipped

Поиск
Список
Период
Сортировка
От Matthias van de Meent
Тема Re: Correct docs re: rewriting indexes when table rewrite is skipped
Дата
Msg-id CAEze2Wi5WBYHq4PC9Cu3+p2Ea3yXz6pWE0RKgOVs-FLBE6OHMg@mail.gmail.com
обсуждение исходный текст
Ответ на Correct docs re: rewriting indexes when table rewrite is skipped  (James Coleman <jtc331@gmail.com>)
Ответы Re: Correct docs re: rewriting indexes when table rewrite is skipped  (James Coleman <jtc331@gmail.com>)
Список pgsql-hackers
On Tue, 29 Mar 2022 at 16:04, James Coleman <jtc331@gmail.com> wrote:
>
> Back in 367bc42 (for 9.2!) we "avoid[ed] index rebuild[ing] for
> no-rewrite ALTER TABLE
> .. ALTER TYPE." However the docs still claim that "a table rewrite is
> not needed; but any indexes on the affected columns must still be
> rebuilt."

Although indexes might indeed not need a rebuild, in many cases they
still do (e.g. when the type changes between text and a domain of text
with a different collation).

I think that the current state of the docs is better in that regard;
as it explicitly warns for index rebuilds, even when the letter of the
docs is incorrect: there are indeed cases we don't need to rebuild the
indexes; but that would require more elaboration.

Kind regards,

Matthias van de Meent



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pg14 psql broke \d datname.nspname.relname
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [Proposal] Fully WAL logged CREATE DATABASE - No Checkpoints