Re: How to move a database from HP server to Linux Server that had already one database.

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: How to move a database from HP server to Linux Server that had already one database.
Дата
Msg-id 4C443A5F02000025000338E1@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: How to move a database from HP server to Linux Server that had already one database.  ("ENGEMANN, DAYSE" <dayse.engemann@hp.com>)
Ответы Re: How to move a database from HP server to Linux Server that had already one database.  ("ENGEMANN, DAYSE" <dayse.engemann@hp.com>)
Список pgsql-admin
"ENGEMANN, DAYSE" <dayse.engemann@hp.com> wrote:

> pg_dump -h sourcemachine -U sourceuser source_dbname | psql
> target_dbname
>
> Is that?

Yes.  You need to enter passwords unless they are specified in
.pgpass or you have some form of authorization which doesn't require
typing a password (for example, trust or ident).

> The data will be import in the existing db?

Yes, you should create the target database before issuing this --
you can add a parameter to the dump to cause it to create the
database, but I always feel safer creating it myself and pointing to
an existing database.

-Kevin

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

Предыдущее
От: "ENGEMANN, DAYSE"
Дата:
Сообщение: Re: How to move a database from HP server to Linux Server that had already one database.
Следующее
От: "ENGEMANN, DAYSE"
Дата:
Сообщение: Re: How to move a database from HP server to Linux Server that had already one database.