Re: pg_dump vs schemas

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: pg_dump vs schemas
Дата
Msg-id 4984456D-8DCA-4B2A-8911-93AA39AA6194@seespotcode.net
обсуждение исходный текст
Ответ на pg_dump vs schemas  (Francisco Reyes <lists@stringsutils.com>)
Ответы Re: pg_dump vs schemas  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-general
On Jul 13, 2007, at 19:10 , Francisco Reyes wrote:

> Alternatively is there any easy way to take all data in one schema
> and load it into a target DB and a different schema?

You might try using the -n flag with pg_dump, replace schema1 with
schema2 in the dump file, and loading the altered dump into the new
database. There may also be some tricks you can play with pg_restore
(on a dump file created with pg_dump -Fc), though I don't know
specifically what offhand.


Michael Glaesemann
grzm seespotcode net



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

Предыдущее
От: Tom Allison
Дата:
Сообщение: Re: multirow insert
Следующее
От: Madison Kelly
Дата:
Сообщение: PostgreSQL equivelant of this MySQL query