From: Scott Marlowe <scott.marlowe@gmail.com>
To: David Young <randomfire@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Is there an easy and safe way to migrate a database to a new tablespace?
Date: Mon, 3 Dec 2007 15:22:05 -0600
Message-ID: <dcc563d10712031322v5bf57efcj7060881beb67504a@mail.gmail.com> (raw)
In-Reply-To: <d3feac2a0711261305l33a4830bob6df418248338115@mail.gmail.com>
References: <d3feac2a0711261305l33a4830bob6df418248338115@mail.gmail.com>
On Nov 26, 2007 3:05 PM, David Young <randomfire@gmail.com> wrote:
> Hi,
>
> I recently converted to using a postgresql engine that support tablespaces.
> There's a database that I would like to move to a new tablespace for
> performance reasons. What is the safe and correct way of doing this? The
> documentation is a bit sketchy on this.
I think you'd have to first set a new default_tablespace for the db,
then you'd have to write a script to go through each object and move
it with an alter (table|index) to the new tablespace.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott.marlowe@gmail.com, randomfire@gmail.com
Subject: Re: Is there an easy and safe way to migrate a database to a new tablespace?
In-Reply-To: <dcc563d10712031322v5bf57efcj7060881beb67504a@mail.gmail.com>
* 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