]> granicus.if.org Git - postgresql/commit
Fix ALTER COLUMN TYPE to preserve the tablespace and reloptions of indexes
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 13 Oct 2007 15:56:08 +0000 (15:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 13 Oct 2007 15:56:08 +0000 (15:56 +0000)
commita4c8494e7b0589ba50cd2d1b00a9b6e2eaaecd15
treebcb3af132c5aa537e1a604f9bbaa2b27a4fa74ed
parent9bc1ea970d081d6e0c6f9aca3a34d4a0b696f1f3
Fix ALTER COLUMN TYPE to preserve the tablespace and reloptions of indexes
it affects.  The original coding neglected tablespace entirely (causing
the indexes to move to the database's default tablespace) and for an index
belonging to a UNIQUE or PRIMARY KEY constraint, it would actually try to
assign the parent table's reloptions to the index :-(.  Per bug #3672 and
subsequent investigation.

8.0 and 8.1 did not have reloptions, but the tablespace bug is present.
src/backend/utils/adt/ruleutils.c
src/backend/utils/cache/lsyscache.c
src/include/utils/lsyscache.h