| От | Laurenz Albe |
|---|---|
| Тема | Re: Need help - Unable to grant a role |
| Дата | |
| Msg-id | cf66b06facd180dcf7aaf87ec744b95491d7541c.camel@cybertec.at обсуждение |
| Ответ на | Need help - Unable to grant a role (Siraj G <tosiraj.g@gmail.com>) |
| Список | pgsql-admin |
On Thu, 2024-02-29 at 06:36 +0530, Siraj G wrote: > I have a PgSQL 15.4 database newly created. I created a user and is using it > to restore a backup of another database, but unable to do so as it is failing > with the below error: > Error: role 'hd*********' does not exist. > > I even tried to grant pg_read_system_files and pg_write_system_files roles, > even then I am getting the same error. Users (= roles) are not part of the database dump, because they are not part of the database. Dump and restore the roles separately, *before* you restore the database. You can dump the roles with "pg_dumpall -r". Yours, Laurenz Albe
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера