Re: [PATCHES] ALTER TABLE ... SET TABLESPACE - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: [PATCHES] ALTER TABLE ... SET TABLESPACE
Date
Msg-id 20040620.213948.41633516.t-ishii@sra.co.jp
Whole thread Raw
Responses Re: [PATCHES] ALTER TABLE ... SET TABLESPACE  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List pgsql-hackers
> Attached is a patch implementing this functionality.
>
> I've modified make_new_heap() as well as swap_relfilenodes() to not assume
> that tablespaces remain the same from old to new heap. I thought it better
> to go down this road than introduce a lot of duplicate code.

I have tried your patches and it works great. Thanks.

One thing I noticed was if I change tablespace for a table having
indexes, they are left in the old tablespace and the table itself was
moved to the new tablespace. I regard this is a good thing since I
could assign different table spaces for table and indexes.
It would be even better to assign different tablespaces for each
index.
--
Tatsuo Ishii

pgsql-hackers by date:

Previous
From: Henner Zeller
Date:
Subject: JDBC prepared statements: actually not server prepared
Next
From: Tatsuo Ishii
Date:
Subject: Re: [PATCHES] ALTER TABLE ... SET TABLESPACE