Re: pg_restore peculiarities - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_restore peculiarities
Date
Msg-id 4838.1095524529@sss.pgh.pa.us
Whole thread Raw
In response to pg_restore peculiarities  (Tim Penhey <tim@penhey.net>)
Responses Re: pg_restore peculiarities  (Tim Penhey <tim@penhey.net>)
Re: pg_restore peculiarities  (Tim Penhey <tim@penhey.net>)
List pgsql-general
Tim Penhey <tim@penhey.net> writes:
> Maybe it's just me, but I can't seem to get pg_restore to restore a
> database...

It looks to me like you have a bunch of stuff in template1, which is
being duplicated into your test_restored DB and then is interfering
with the restoration of similarly-named objects.

Create the empty database using template0 as template, instead, and
then the restore will work.

            regards, tom lane

pgsql-general by date:

Previous
From: Christopher Browne
Date:
Subject: Re: Support on Enterprise Linux (newbie)
Next
From: Tim Penhey
Date:
Subject: Re: pg_restore peculiarities