Re: restoring under a different owner?

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: restoring under a different owner?
Дата
Msg-id E07D4323-1136-4BF3-9075-AA3A134B27C3@pgedit.com
обсуждение исходный текст
Ответ на restoring under a different owner?  ("Christopher J. Bottaro" <cjbottaro@alumni.cs.utexas.edu>)
Список pgsql-general
On Feb 19, 2006, at 3:25 PM, Christopher J. Bottaro wrote:

> I want to use pg_dump to backup an entire Postgres database,
> including BLOB
> data.  Then I want to restore it on a different machine with a
> different db
> owner and all the tables restored under that owner.  I want the
> restore to
> create the db and all the tables.
>
> What are the commands to do this?


See the --no-owner option with pg_restore (also available with pg_dump).

http://www.postgresql.org/docs/8.0/interactive/app-pgrestore.html



John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


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

Предыдущее
От: "Christopher J. Bottaro"
Дата:
Сообщение: restoring under a different owner?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: restoring under a different owner?