Re: Distributing PostGres database to various customers

Поиск
Список
Период
Сортировка
От Alexander Staubo
Тема Re: Distributing PostGres database to various customers
Дата
Msg-id 88daf38c0706110608g557d3551s5fa526039764c451@mail.gmail.com
обсуждение исходный текст
Ответ на Distributing PostGres database to various customers  ("Mike Gould" <mgould@allcoast.net>)
Ответы Re: Distributing PostGres database to various customers  (David Fetter <david@fetter.org>)
Список pgsql-general
On 6/11/07, Mike Gould <mgould@allcoast.net> wrote:
> How can we do this with PostGres?  Other than backup and restore or creating
> SQL scripts I haven't been able to find another method.  Some of these
> tables may have over a million rows in them initially if we convert old
> data.

The most portable way is probably pg_dump as plaintext:

  pg_dump -Fp mydatabase >mydatabase.dump

Then restore with:

  cat mydatabase.dump | psql mydatabase

Alexander.

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

Предыдущее
От: Thomas Pundt
Дата:
Сообщение: Re: transaction problem using cursors
Следующее
От: "Pit M."
Дата:
Сообщение: Re: transaction problem using cursors