pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Hoover <revoohc@gmail.com>
To: pgsql-admin@postgresql.org Admin <pgsql-admin@postgresql.org>
Subject: How to move a tablespace?
Date: Fri, 22 Jun 2007 14:14:43 -0400
Message-ID: <1d219a6f0706221114t25ddf96djf62297a8f1428cc2@mail.gmail.com> (raw)

How do you correctly move a tablespace?

I am thinking this would be the process:
1.  Cleanly shutdown Postgres
2.  Move tablespace directory and all contents to new location
3.  Create a symlink from the new location back to the old location
4.  Restart Postgres

Would that be correct?  Or is there a better way.

Thanks,

Chris

view thread (3+ messages)  latest in thread

Message-ID: <1d219a6f0706221114t25ddf96djf62297a8f1428cc2@mail.gmail.com>
Permalink:  ../1d219a6f0706221114t25ddf96djf62297a8f1428cc2@mail.gmail.com/
Also on:    postgresql.org/message-id/1d219a6f0706221114t25ddf96djf62297a8f1428cc2@mail.gmail.com

 · 

reply

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: revoohc@gmail.com
  Subject: Re: How to move a tablespace?
  In-Reply-To: <1d219a6f0706221114t25ddf96djf62297a8f1428cc2@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