Re: Is it possible to move a database to another tablespace?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Francisco Reyes <lists(at)stringsutils(dot)com>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is it possible to move a database to another tablespace?
Date: 2007-04-20 03:52:05
Message-ID: 15624.1177041125@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Francisco Reyes <lists(at)stringsutils(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brent Wood 2007-04-20 03:58:43 Re: selective export for subsequent import (COPY)
Previous Message Tom Lane 2007-04-20 03:41:22 Re: binding 64-bit integer