Further question RE dumping and reloading whole database server
В списке pgsql-admin по дате отправления:
| От | Kevin Bailey |
|---|---|
| Тема | Further question RE dumping and reloading whole database server |
| Дата | |
| Msg-id | 49DF1854.9050106@freewayprojects.com обсуждение исходный текст |
| Список | pgsql-admin |
Further to an earlier question.. I've tried pg_dumpall --inserts --clean -h $REMOTE -U admin | psql -U postgres template1 To extract a whole database from a remote server and to reload it into a local DB but this produces tons of errors. ERROR: role "admin" cannot be dropped because some objects depend on it DETAIL: owner of database test1 owner of database test 7 objects in database test1 201 objects in database test ERROR: role "admin" already exists ERROR: current user cannot be dropped ERROR: role "postgres" already exists ERROR: role "sql-ledger" cannot be dropped because some objects depend on it DETAIL: owner of database bean-demo owner of database bean-cash owner of database bean-41 Is there something I need to do RE the user I connect as? Or should I do the dump to a file - transfer the file and then attempt the reload? Thanks, bailey86
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера