Skip site navigation (1) Skip section navigation (2)

Moving database and schema to a new tablespace

From: Richard Shaw <richard(at)aggress(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Moving database and schema to a new tablespace
Date: 2011-09-08 18:09:04
Message-ID: 9BD8BDB8-C1D6-4683-8011-95C0E66F3AAB@aggress.net (view raw or flat)
Thread:
Lists: pgsql-admin
Hi,

I'm looking to move a database by using ALTER DATABASE $DB  SET TABLESPACE and i'd also like to move a schema over to the same new tablespace, googling around, it looks like there was a an ALTER SCHEMA $SCHEMA SET TABLESPACE command in the past, but apparently no longer.   I'm using Postgres 9, can anyone confirm if this is still possible, and if not, how I can move the schema over ?

Thanks in advance

Richard

Responses

pgsql-admin by date

Next:From: Guillaume LelargeDate: 2011-09-08 18:55:27
Subject: Re: Moving database and schema to a new tablespace
Previous:From: marvin.deoliveiraDate: 2011-09-08 13:28:39
Subject: Re: corrupted rows in pg_attribute deleted

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group