Re: ALTER TABLESPACE ... MOVE ALL TO ... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ALTER TABLESPACE ... MOVE ALL TO ...
Date
Msg-id 14946.1390232776@sss.pgh.pa.us
Whole thread Raw
In response to Re: ALTER TABLESPACE ... MOVE ALL TO ...  (Stephen Frost <sfrost@snowman.net>)
Responses Re: ALTER TABLESPACE ... MOVE ALL TO ...  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> So you're still looking for an 'OWNED' noise word to be added?  Also, I
> did add the ability to specify types of objects (it's often that we'll
> have a "INDEXES" tablespace, so this made sense), so how about:

> ALTER TABLESPACE name MOVE OWNED TO name opt_nowait
> ALTER TABLESPACE name MOVE TABLES OWNED TO name opt_nowait
> ALTER TABLESPACE name MOVE INDEXES OWNED TO name opt_nowait
> ALTER TABLESPACE name MOVE MATERIALIZED VIEWS OWNED TO name opt_nowait

> Removing the 'ALL' entirely?

What if you're a superuser and you want to move everybody's objects
(perhaps in preparation for dropping the tablespace)?  I think there's
value in both the ALL and OWNED forms.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: NOT Null constraint on foreign table not working
Next
From: Simon Riggs
Date:
Subject: Re: ALTER TABLESPACE ... MOVE ALL TO ...