Re: pg_restore but for full user and roles, etc
От | Keith Fiske |
---|---|
Тема | Re: pg_restore but for full user and roles, etc |
Дата | |
Msg-id | CAODZiv6GL6iasg91-uYzfh699NgGBOwTbWWQXeZG9=EwvGy3Gw@mail.gmail.com обсуждение исходный текст |
Ответ на | pg_restore but for full user and roles, etc (Wells Oliver <wells.oliver@gmail.com>) |
Список | pgsql-admin |
On Fri, Jul 26, 2024 at 12:43 PM Wells Oliver <wells.oliver@gmail.com> wrote:
I am doing a pg_restore of a database, which is nothing difficult, but I also am creating a new server first, and rather than painstakingly making sure I create all users and roles etc prior to pg_restore (so we can have the same perms), is there some obvious way of doing this I'm unawares of?--Wells Oliver
wells.oliver@gmail.com
And to clarify, while the roles themselves are global, the GRANTS are per database and would be contained in the pg_dump files along with the objects those grants are for.
-- В списке pgsql-admin по дате отправления: