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

From Gavin Sherry
Subject Re: ALTER xxx SET TABLESPACE (was bug in DROP TABLESPACE)
Date
Msg-id Pine.LNX.4.58.0407071742190.29717@linuxworld.com.au
Whole thread Raw
In response to Re: ALTER xxx SET TABLESPACE (was bug in DROP TABLESPACE)  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
On Wed, 7 Jul 2004, Christopher Kings-Lynne wrote:

> > 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.
>
> I meant option one - I hadn't considered the second.  The thing is
> though you have to maybe move some stuff on disk as well.

Maybe? You definately do.

In the ALTER DATABASE case you'd also need to lock users out of the
database.

I'm not so sure these additions are necessary for 7.5 though...

Does anyone else have thoughts?

Gavin


pgsql-hackers by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: ALTER xx SET TABLESPACE (was bug in DROP TABLESPACE)
Next
From: Oliver Jowett
Date:
Subject: Re: nested-xacts cursors (was Re: Performance with new