RE: How to restore roles into new Database server?

From: Sridhar Parepalli <Sridhar(dot)Parepalli(at)sas(dot)com>
To: Thomas Kellerer <shammat(at)gmx(dot)net>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: How to restore roles into new Database server?
Date: 2021-09-15 17:19:16
Message-ID: DM6PR05MB62654D584E0FCF871B050977F3DB9@DM6PR05MB6265.namprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you, Thomas!

-----Original Message-----
From: Thomas Kellerer <shammat(at)gmx(dot)net>
Sent: Wednesday, September 15, 2021 10:55 AM
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: How to restore roles into new Database server?

EXTERNAL

Sridhar Parepalli schrieb am 15.09.2021 um 15:53:
> Hello Pros,
> Is there a quick way to create roles from database server to another db server?

You can use pg_dumpall with the --globals-only parameter to create a SQL script that contains all roles from the source server

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Nolan 2021-09-15 17:47:38 Re: Alter and move corresponding: was The tragedy of SQL
Previous Message Sridhar Parepalli 2021-09-15 17:18:59 RE: How to restore roles into new Database server?