Re: Transfer database tables to a schema

Поиск
Список
Период
Сортировка
От Francisco
Тема Re: Transfer database tables to a schema
Дата
Msg-id 20040210145010.Q37316@zoraida.natserv.net
обсуждение исходный текст
Ответ на Transfer database tables to a schema  ("Peter Darley" <pdarley@kinesis-cem.com>)
Список pgsql-general
On Mon, 2 Feb 2004, Peter Darley wrote:

>     I have a couple of databases that should really be schemas in the same
> database.  I tried to find suggestions on how to easily move all the
> tables/sequences/etc.


I would not call it easy, but what I have done in the past is:
* Create users with access only to schemas you want to copy data to.
* Dump database(s)
* Log with user(s) with restricted schema. Restore from the dumps.

Last time I did this was with 7.3.X and it worked fine. I did not have
multiple schemas in the databases the data was coming from. I think you
may need to do more work and dump each schema separately if your source
DBs have multiple schemas.

You may also be able to do a dump of the entire DB and manually delete the
schema info, but you should be very carefull if you try that approach.

В списке pgsql-general по дате отправления:

Предыдущее
От: Artemy
Дата:
Сообщение: PostgreSQL License
Следующее
От: "William ZHANG"
Дата:
Сообщение: Re: pg_class and relfilenode