Re: Swapping volumes under tablespaces: supported?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kenneth Tilton <ktilton(at)mcna(dot)net>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Swapping volumes under tablespaces: supported?
Date: 2013-02-08 23:58:03
Message-ID: 26381.1360367883@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kenneth Tilton <ktilton(at)mcna(dot)net> writes:
> Currently we refresh our test DB instance by cloning the single production
> EC2 volume we use for our entire PG environment and attaching it to the dev
> EC2 instance running Postgres. This works well.

> But now we are about to add a large quantity of largely static data to our
> database. To avoid cloning the static data every time we refresh test
> (several times a day), we want to put the new data in its own tablespace
> pointing to a different volume, then clone only the default volume to which
> the Postgres and default spaces point.

> Is that supported?

No. XID and table-OID considerations are going to give you headaches.

It's possible you can make it work as long as the static data is really
static (not "largely" static, but absolutely read-only) and you VACUUM
FREEZE all of it and then don't change the catalog entries about it in
the DB image being cloned. But you shouldn't imagine that we consider
this supported. If it breaks you get to keep both pieces.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-02-09 00:02:04 Re: no implicit cast error in 9.2?
Previous Message Tom Lane 2013-02-08 23:52:07 Re: no implicit cast error in 9.2?