Re: Is it possible to move a database to another tablespace? - Mailing list pgsql-general

From Tom Lane
Subject Re: Is it possible to move a database to another tablespace?
Date
Msg-id 15624.1177041125@sss.pgh.pa.us
Whole thread Raw
In response to Is it possible to move a database to another tablespace?  (Francisco Reyes <lists@stringsutils.com>)
List pgsql-general
Francisco Reyes <lists@stringsutils.com> writes:
> I see tables and indexes can be moved to a different tablespace.
> Is there any way to move an entire database to a different tablespace?

No.  Moving the system catalogs on-the-fly would be an interesting
problem ("uh, where did you say pg_class was? ... and I can't find its
indexes either?").  It could possibly be done, but the complexity would
be far out of proportion to the value I fear.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: binding 64-bit integer
Next
From: Brent Wood
Date:
Subject: Re: selective export for subsequent import (COPY)