Информация об изменениях

Сообщение Re: postgre backup restore от 07.02.2024 13:13

Изменено 07.02.2024 13:35 m2user

Re: postgre backup restore
Я конечно не спец по postgresql , но database роли там общие на все БД (как server roles у MS SQL server)
https://www.postgresql.org/docs/8.1/user-manag.html#DATABASE-ROLES

Database roles are global across a database cluster installation (and not per individual database).


Пишут, что дампить их нужно так:
pg_dumpall --globals-only > globals.dump

https://superuser.com/a/1464986

Возможно другие ошибки имею аналогичную природу.
Re: postgre backup restore
УП>pg_restore: [archiver (db)] could not execute query: ERROR: role "amn_user_ext" does not exist

Я конечно не спец по postgresql , но database роли там общие на все БД (как server roles у MS SQL server)
https://www.postgresql.org/docs/8.1/user-manag.html#DATABASE-ROLES

Database roles are global across a database cluster installation (and not per individual database).


Пишут, что дампить их нужно так:
pg_dumpall --globals-only > globals.dump

https://superuser.com/a/1464986

Возможно другие ошибки имеют аналогичную природу.