howto restore from pg_dumpall - Mailing list pgsql-admin

From Marc Fromm
Subject howto restore from pg_dumpall
Date
Msg-id 81FEAB8CDDC62B42B6E8AA258228BC88047417DA@EVS2.univ.dir.wwu.edu
Whole thread Raw
Responses Re: howto restore from pg_dumpall
List pgsql-admin
When I restore from a pg_dumpall file, I am required to peform the following steps or else all the records in the
databsesare duplicated.  If I only empty the data/base folder I get al sorts of errors. I find in necessary to wipe the
entiredata folder and rebuild it with initdb. Is there a better way to restore using a pg_dumpall file then doing all
thesesteps: 


        *    stop postmaster service
        *    delete everything in the data folder (var/lib/pgsql/data)
        *    as postgres user run initdb
        *    exit postgres user
        *    psql -U postgres -f pg_dumpall_file postgres

thansk


pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Database conversion type serial question
Next
From: Peter Eisentraut
Date:
Subject: Re: howto restore from pg_dumpall