ALTER xxx SET TABLESPACE (was bug in DROP TABLESPACE) - Mailing list pgsql-hackers

From Andreas Pflug
Subject ALTER xxx SET TABLESPACE (was bug in DROP TABLESPACE)
Date
Msg-id 40EBA149.2020207@pse-consulting.de
Whole thread Raw
In response to Re: bug in DROP TABLESPACE  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: ALTER xxx SET TABLESPACE (was bug in DROP TABLESPACE)
List pgsql-hackers
Christopher Kings-Lynne wrote:

>
> The other thing we need are these two commands:
>
> ALTER DATABASE foo SET TABLESPACE spc;
> ALTER SCHEMA foo SET TABLESPACE spc;
>
> I think these should not be considered new features but essential 
> functionality left out of the original patch.

Its questionable if these are to be interpreted as just changing the 
default tablespace for subsequent creates, or also moving all objects 
that were created using the previous tablespace. Since it's 
indistinguishable whether an object was created using the default from 
schema/database or given a tablespace explicitely (unless default was 
0), I'd opt for version one.

Regards,
Andreas




pgsql-hackers by date:

Previous
From: Honza Pazdziora
Date:
Subject: Re: Adding VERSION to startup log output
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: ALTER xxx SET TABLESPACE (was bug in DROP TABLESPACE)