Re: db not dumping properly, or at least not restoring - Mailing list pgsql-general

From Scott Marlowe
Subject Re: db not dumping properly, or at least not restoring
Date
Msg-id dcc563d10910161451s20c184f3t68de3c69c7dd6998@mail.gmail.com
Whole thread Raw
In response to db not dumping properly, or at least not restoring  (Kirk Wythers <kwythers@umn.edu>)
Responses Re: db not dumping properly, or at least not restoring
List 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 by date:

Previous
From: Peter Hunsberger
Date:
Subject: Re: Partitioned tables as a poor mans columnar index?
Next
From: Tom Lane
Date:
Subject: Re: slightly off-topic: Central Auth