Make CheckIndexCompatible simpler and more bullet-proof.
Robert Haas <rhaas@postgresql.org>
Make CheckIndexCompatible simpler and more bullet-proof. This gives up the "don't rewrite the index" behavior in a couple of relatively unimportant cases, such as changing between an array type and an unconstrained domain over that array type, in return for making this code more future-proof. Noah Misch
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/indexcmds.c | modified | +50 −55 |
| src/test/regress/expected/alter_table.out | modified | +9 −0 |
| src/test/regress/sql/alter_table.sql | modified | +8 −0 |