Moving a tablespace

From: "Craig A(dot) James" <cjames(at)modgraph-usa(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Moving a tablespace
Date: 2006-08-23 01:16:54
Message-ID: 44EBAC86.7070503@modgraph-usa.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Suppose, hypothetically of course, someone lacked foresight, and put a tablespace somewhere with a dumb name, like "/disk2", instead of using a symbolic link with a more descriptive name. And then /disk2 needs to be renamed, say to "/postgres_data", and this (hypothetical) DBA realizes he has made a dumb mistake.

Is there a way to move a tablespace to a new location without a dump/restore? I, er, this hypothetical guy, knows he can move it and put a symbolic link in for /disk2, but this is somewhat unsatisfactory since "/disk2" would have to exist forever.

Thanks,
Craig

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Fuhr 2006-08-23 01:36:08 Re: Moving a tablespace
Previous Message Subbiah, Stalin 2006-08-23 00:46:22 Query tuning