| От | Tom Lane |
|---|---|
| Тема | Re: restore from a pg_dumpall file |
| Дата | |
| Msg-id | 23297.1085497671@sss.pgh.pa.us обсуждение |
| Ответ на | restore from a pg_dumpall file ("Bob Powell" <Bob@hotchkiss.org>) |
| Список | pgsql-general |
"Bob Powell" <Bob@hotchkiss.org> writes:
> I have a restore file created by pg_dumpall. The restore file has two
> users associated with ownership of tables. The postgres user and a user
> called nsadmin.
> When I attempt to restore this it won't create my call_handlers because
> it's not the postgres user. If I attempt to restore under the nsadmin
> user the language handlers fail.
> How can I restore this file without changing everything to postgress
> user?
You pretty much always have to start the restore of a pg_dumpall file
as superuser. That does not mean it will create everything as owned by
the superuser, but it needs superuser permissions.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера