pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <shammat@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to restore roles into new Database server?
Date: Wed, 15 Sep 2021 16:55:17 +0200
Message-ID: <1ba11044-ed0f-8839-5655-c8ae734500cd@gmx.net> (raw)
In-Reply-To: <DM6PR05MB6265D85B4ACDBE8E4D36BD5EF3DB9@DM6PR05MB6265.namprd05.prod.outlook.com>
References: <DM6PR05MB6265D85B4ACDBE8E4D36BD5EF3DB9@DM6PR05MB6265.namprd05.prod.outlook.com>

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





view thread (7+ messages)  latest in thread

Message-ID: <1ba11044-ed0f-8839-5655-c8ae734500cd@gmx.net>
Permalink:  ../1ba11044-ed0f-8839-5655-c8ae734500cd@gmx.net/
Also on:    postgresql.org/message-id/1ba11044-ed0f-8839-5655-c8ae734500cd@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: shammat@gmx.net
  Subject: Re: How to restore roles into new Database server?
  In-Reply-To: <1ba11044-ed0f-8839-5655-c8ae734500cd@gmx.net>
  References: <DM6PR05MB6265D85B4ACDBE8E4D36BD5EF3DB9@DM6PR05MB6265.namprd05.prod.outlook.com> <1ba11044-ed0f-8839-5655-c8ae734500cd@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox