Possible to Attach/Detach Tablespaces?

Started by Ow Mun Hengover 18 years ago3 messagesgeneral
Jump to latest
#1Ow Mun Heng
Ow.Mun.Heng@wdc.com

New to PG, just wondering if there's anyway to say.. I want t Full
backup of DB-Sample and I can just tar up the directory containing that
tablespace, copy it to another PG server and then re-attach it?

Thanks

#2Richard Huxton
dev@archonet.com
In reply to: Ow Mun Heng (#1)
Re: Possible to Attach/Detach Tablespaces?

Ow Mun Heng wrote:

New to PG, just wondering if there's anyway to say.. I want t Full
backup of DB-Sample and I can just tar up the directory containing that
tablespace, copy it to another PG server and then re-attach it?

No. Apart from anything else OID and transaction numbers would be all wrong.

--
Richard Huxton
Archonet Ltd

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Ow Mun Heng (#1)
Re: Possible to Attach/Detach Tablespaces?

Am Mittwoch, 1. August 2007 10:07 schrieb Ow Mun Heng:

New to PG, just wondering if there's anyway to say.. I want t Full
backup of DB-Sample and I can just tar up the directory containing that
tablespace, copy it to another PG server and then re-attach it?

No.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/