pg_restore but for full user and roles, etc

From: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: pg_restore but for full user and roles, etc
Date: 2024-07-26 16:42:20
Message-ID: CAOC+FBX_hVc9CRpmYjerMxmSvbfUTORt7p2aVmXHPh81eiXK1w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(dot)oliver(at)gmail(dot)com <wellsoliver(at)gmail(dot)com>

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Fernando Hevia 2024-07-26 16:56:42 Re: Queries are failing on standby server
Previous Message Wong, Kam Fook (TR Technology) 2024-07-26 15:37:48 RE: [EXT] Re: How to detect if a postgresql gin index is bloated