Re: Need to Reload a Dump File - Need to Delete the PGDATA directory Again?
В списке pgsql-general по дате отправления:
| От | John R Pierce |
|---|---|
| Тема | Re: Need to Reload a Dump File - Need to Delete the PGDATA directory Again? |
| Дата | |
| Msg-id | 4B8F5F9A.5020201@hogranch.com обсуждение исходный текст |
| Ответ на | Need to Reload a Dump File - Need to Delete the PGDATA directory Again? ("Wang, Mary Y" <mary.y.wang@boeing.com>) |
| Список | pgsql-general |
Wang, Mary Y wrote: > Hi All, > > I'm in the processing of migrating to Postgres 8.3.8. > I did : > (1) initdb > (2) psql -e template1 -f 21.bak &>/tmp/out21.bak > > Now, I've decided that I want to reload the same file again, do I just delete the PGDATA directory and then > perform the same steps again? > (1) initdb > (2) psql -e template1 -f 21.bak &>/tmp/out21.bak > > What I'm asking is that do I always need to delete the PGDATA directory and then initdb to ensure that it will be a cleanload? > is that dumpfile from pg_dumpall or pg_dump of a single database or what? if its just a single database, it should suffice to drop database mydb; create database mydb with owner myowner; and then run the script again. if its the full cluster dump, then yeah, deleting the $PGDATA and redoing initdb is the best way to insure clean initial conditions.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера