From: Jim C. Nasby <jim@nasby.net>
To: Colton Smith <smith@skio.peachnet.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump, pg_restore and tablespaces
Date: Tue, 6 Dec 2005 14:11:23 -0600
Message-ID: <20051206201123.GF16053@nasby.net> (raw)
In-Reply-To: <438CAD70.4050005@skio.peachnet.edu>
References: <438CAD70.4050005@skio.peachnet.edu>
On Tue, Nov 29, 2005 at 02:35:12PM -0500, Colton Smith wrote:
> Hi:
>
> Let's say I have a database comprised of tables scattered over several
> tablespaces. Suppose I need to move the database to another server and
> I can't
> use the same pathnames for the tablespaces. Am I out of luck when it
> comes to using pg_dump and pg_restore?
No. You can just create the tablespaces you need with whatever mapping
suits the new server before doing the restore. This will generate an
error during the restore (tablespace already exists), but you can ignore
that. Just make sure the names match up.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jim@nasby.net, smith@skio.peachnet.edu
Subject: Re: pg_dump, pg_restore and tablespaces
In-Reply-To: <20051206201123.GF16053@nasby.net>
References: <438CAD70.4050005@skio.peachnet.edu> <20051206201123.GF16053@nasby.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox