Re: Restoring to a different tablespace - Mailing list pgsql-novice

From Tom Lane
Subject Re: Restoring to a different tablespace
Date
Msg-id 21233.1136060871@sss.pgh.pa.us
Whole thread Raw
In response to Restoring to a different tablespace  ("Joeseph Blowseph" <joseph_blowseph@hotmail.com>)
List pgsql-novice
"Joeseph Blowseph" <joseph_blowseph@hotmail.com> writes:
> However, if I run a restore, connecting as the new user,  the tables are
> owned by the user as expected, but they are going to the default tablespace
> and blowing my C: filesystem.

If that's a pg_dump dump, it very likely includes commands to specify
which tablespace the tables should go into.  You'll need to modify the
dump file to override that.

It might work to create a new database with the desired tablespace as
its default, and restore into that database.

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: PG_Dump Users and Groups
Next
From: Tom Lane
Date:
Subject: Re: Limit to mail size?