Re: reuse tablespace from crashed PSQL instance - Mailing list pgsql-admin

From Alex Ignatov
Subject Re: reuse tablespace from crashed PSQL instance
Date
Msg-id 19518802B8BEC076.F3B8DC25-B5D7-4BA3-9B38-05D6137F201D@mail.outlook.com
Whole thread Raw
In response to reuse tablespace from crashed PSQL instance  (Artem Tomyuk <admin@leboutique.com>)
Responses Re: reuse tablespace from crashed PSQL instance
List pgsql-admin
There is nothing in relation data files that prevent you to do it (no headers etc in files) except xmin and xmax info from tuple %). 
So the short answer is yes you can do it but may be you will not see any data from it if for example current txid is less than xmin's from data files.
PS There is no transportable tablespaces as they are in Oracle. So you can only try it  at home ;)

Alex Ignatov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company




On Tue, Jun 21, 2016 at 11:26 AM +0300, "Artem Tomyuk" <admin@leboutique.com> wrote:

Hi. 

Is it possible to reconnect tablespace from old setup to the new one with the same version of PGSQL?

Thanks.

pgsql-admin by date:

Previous
From: Artem Tomyuk
Date:
Subject: reuse tablespace from crashed PSQL instance
Next
From: Artem Tomyuk
Date:
Subject: Re: reuse tablespace from crashed PSQL instance