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

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Kirk Wythers <kwythers(at)umn(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: db not dumping properly, or at least not restoring
Date: 2009-10-16 21:51:34
Message-ID: dcc563d10910161451s20c184f3t68de3c69c7dd6998@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 16, 2009 at 11:25 AM, Kirk Wythers <kwythers(at)umn(dot)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)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-10-16 22:40:17 Re: slightly off-topic: Central Auth
Previous Message Peter Hunsberger 2009-10-16 21:01:01 Re: Partitioned tables as a poor mans columnar index?