Correct docs re: rewriting indexes when table rewrite is skipped

James Coleman <jtc331@gmail.com>

From: James Coleman <jtc331@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-03-29T14:03:45Z
Lists: pgsql-hackers

Attachments

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."

I've attached a simple patch to update the docs to match the current behavior.

Thanks,
James Coleman

Commits

  1. docs: Changing column type doesn't always require an index rebuild.