howto restore from pg_dumpall

Поиск
Список
Период
Сортировка
От Marc Fromm
Тема howto restore from pg_dumpall
Дата
Msg-id 81FEAB8CDDC62B42B6E8AA258228BC88047417DA@EVS2.univ.dir.wwu.edu
обсуждение исходный текст
Ответы Re: howto restore from pg_dumpall  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Database conversion type serial question
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: howto restore from pg_dumpall