| От | Mike Mascari |
|---|---|
| Тема | Re: why restoring a dump file is sooo slow |
| Дата | |
| Msg-id | 3EAA7600.9050702@mascari.com обсуждение исходный текст |
| Ответ на | why restoring a dump file is sooo slow ("Reynard Hilman" <reynardmh@lightsky.com>) |
| Ответы |
Re: why restoring a dump file is sooo slow
|
| Список | pgsql-general |
Reynard Hilman wrote: > Hi, > > I'm trying to restore a dump file that I created using: > pg_dump -CD dbname > dump.sql > > the dump file size is about 87 Mb. > > so I did this to restore: > psql -f dump.sql -U user template1 > > It takes almost an hour and a half to restore the database. This there a reason you are using the 'D' option to dump the database as INSERTs? A dump which uses COPY (the default) instead will reload much more quickly. Mike Mascari mascarm@mascari.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера