]> 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:55:49 +0000 (15:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 13 Oct 2007 15:55:49 +0000 (15:55 +0000)
commit5b8328b936f11f8b0cd63428f75754c575ef4dc3
treef2dc8aa876a0b63db6e9f5374e6d686bbd19c6cb
parentef3ff3eee48d88ce35b87409c0d96a12f75f044b
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