pgsql: Fix ALTER COLUMN TYPE to preserve the tablespace and reloptions - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix ALTER COLUMN TYPE to preserve the tablespace and reloptions
Date
Msg-id 20071013155541.05FFA753E4C@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        ruleutils.c (r1.263 -> r1.264)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/ruleutils.c?r1=1.263&r2=1.264)
    pgsql/src/backend/utils/cache:
        lsyscache.c (r1.152 -> r1.153)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/cache/lsyscache.c?r1=1.152&r2=1.153)
    pgsql/src/include/utils:
        lsyscache.h (r1.119 -> r1.120)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/lsyscache.h?r1=1.119&r2=1.120)

pgsql-committers by date:

Previous
From: fxjr@pgfoundry.org (User Fxjr)
Date:
Subject: npgsql - Npgsql2: Updated docs to include documentation about COPY
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix ALTER COLUMN TYPE to preserve the tablespace and reloptions