Re: patch : Allow toast tables to be moved to a different tablespace - Mailing list pgsql-hackers

From Julien Tachoires
Subject Re: patch : Allow toast tables to be moved to a different tablespace
Date
Msg-id CAFEQCbGPrRpV1+bQSQ-v0i-md18rvx6jpyR=TEYt+9sPCfTMYw@mail.gmail.com
Whole thread Raw
In response to Re: patch : Allow toast tables to be moved to a different tablespace  (Jaime Casanova <jaime@2ndquadrant.com>)
Responses Re: patch : Allow toast tables to be moved to a different tablespace  (Jaime Casanova <jaime@2ndquadrant.com>)
Re: patch : Allow toast tables to be moved to a different tablespace  (Jaime Casanova <jaime@2ndquadrant.com>)
List pgsql-hackers
2011/11/15 Jaime Casanova <jaime@2ndquadrant.com>:
> On Fri, Oct 7, 2011 at 10:10 AM, Julien Tachoires <julmon@gmail.com> wrote:
>> Hi,
>>
>> Here's a patch to allow TOAST tables to be moved to a different tablespace.
>> This item has been picked up from the TODO list.
>> Main idea is to consider that a TOAST table can have its own tablespace.
>>
>
> Hi,
>
> This patch doesn't apply cleanly to head now... can you send a new
> version against head?

Hi Jaime,

New patch is attached.

>
> about the patch itself. i don't like the fact that now the normal case
> needs to include the word TABLE. IMHO, it should be optional and if
> ommited TABLE should be assumed
>

Maybe I'd missed something, but the normal case is :
ALTER TABLE ... SET TABLESPACE => moves Table + moves associated TOAST Table
ALTER TABLE ... SET TABLE TABLESPACE => moves Table & keeps associated
TOAST Table at its place
ALTER TABLE ... SET TOAST TABLESPACE => keeps Table at its place &
moves associated TOAST Table

Regards,

--
JT

Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: ToDo: pg_backup - using a conditional DROP
Next
From: Greg Smith
Date:
Subject: Re: [PATCH] Unremovable tuple monitoring