Re: db not dumping properly, or at least not restoring

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: db not dumping properly, or at least not restoring
Дата
Msg-id dcc563d10910161451s20c184f3t68de3c69c7dd6998@mail.gmail.com
обсуждение исходный текст
Ответ на db not dumping properly, or at least not restoring  (Kirk Wythers <kwythers@umn.edu>)
Ответы Re: db not dumping properly, or at least not restoring
Список pgsql-general
On Fri, Oct 16, 2009 at 11:25 AM, Kirk Wythers <kwythers@umn.edu> wrote:

> Any ideas what the problem could be here?

Use the pg_dump from the target (i.e. newer) pgsql.  I.e. if going
from 8.3.8 to 8.4.1, use the pg_dump that comes with 8.4.1 to dump the
8.3.8 database.

I usually just do it like so:

(First migrate accounts:)
pg_dumpall --globals -h oldserver | psql -h newserver postgres
(then each database:)
createdb -h newserver dbname
pg_dump -h oldserver dbname | psql -h newserver dbname
(repeat as needed, save output for error messages)

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

Предыдущее
От: Peter Hunsberger
Дата:
Сообщение: Re: Partitioned tables as a poor mans columnar index?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: slightly off-topic: Central Auth