Обсуждение: Possible to Attach/Detach Tablespaces?

Поиск
Список
Период
Сортировка

Possible to Attach/Detach Tablespaces?

От
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?

Thanks

Re: Possible to Attach/Detach Tablespaces?

От
Richard Huxton
Дата:
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

Re: Possible to Attach/Detach Tablespaces?

От
Peter Eisentraut
Дата:
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/