From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> |
Cc: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCHES] ALTER TABLE ... SET TABLESPACE |
Date: | 2004-06-21 04:15:48 |
Message-ID: | 22694.1087791348@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> writes:
> On Mon, 21 Jun 2004, Tatsuo Ishii wrote:
>> First of all I would like to ask you if you intend to leave indexes in
>> the old tables space or not.
> Yes, that is intentional.
There's a related issue: what about the table's TOAST table (if any)
and the index on same?
During CREATE TABLE, the toast table is assigned to the same tablespace
as the base table, as is its index. I don't think this is wrong exactly
--- the fact that we separate data storage into main and toast tables is
an implementation detail that users shouldn't have to think about.
If you subscribe to that notion, then ALTER TABLE SET TABLESPACE had
better move the toast table and index too. If you don't subscribe
to it, then ALTER TABLE SET TABLESPACE had better be able to move
toast tables, and the issue will have to be documented.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-06-21 04:22:33 | Re: [PATCHES] ALTER TABLE ... SET TABLESPACE |
Previous Message | Bruce Momjian | 2004-06-21 04:00:46 | Applying patches |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-06-21 04:22:33 | Re: [PATCHES] ALTER TABLE ... SET TABLESPACE |
Previous Message | Tom Lane | 2004-06-21 04:07:29 | Re: Admin guide tablespace docs |