Re: howto restore from pg_dumpall

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Cc: "Marc Fromm" <Marc(dot)Fromm(at)wwu(dot)edu>
Subject: Re: howto restore from pg_dumpall
Date: 2008-03-16 22:05:44
Message-ID: 200803162305.45936.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Marc Fromm wrote:
> When I restore from a pg_dumpall file, I am required to peform the
> following steps or else all the records in the databses are duplicated. If
> I only empty the data/base folder I get al sorts of errors.

You may find the pg_dumpall --clean option useful, so the dump file is set up
in a way that cleans out its predecessor objects automatically. Otherwise
you will have to find your own to way clean up before restoring.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rommel the iCeMAn 2008-03-17 14:25:16 pgAdmin Crashes After Changing Timezone Setting
Previous Message Marc Fromm 2008-03-16 19:46:25 howto restore from pg_dumpall