pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yauheni Labko <yyl@chappy.com>
To: Julie Warden <Julie_Warden@nospam.hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump and roles
Date: Fri, 3 Oct 2008 16:12:13 -0400 (EDT)
Message-ID: <alpine.DEB.2.00.0810031610190.2149@tech-pc04.chappy.com> (raw)
In-Reply-To: <4k6ce45tvg8aqhnol6s8n6s3sn41bdc7q1@4ax.com>
References: <4k6ce45tvg8aqhnol6s8n6s3sn41bdc7q1@4ax.com>


> Is there a method to dump just the roles from a database, or otherwise
> select them, so I can build a script to reload the roles? Otherwise, I
> guess I'll just read the tables for each database and build the
> security script from that.

from man pg_dumpall:

  -r

  --roles-only
               Dump only roles, no databases or tablespaces.



Eugene



view thread (5+ messages)  latest in thread

Message-ID: <alpine.DEB.2.00.0810031610190.2149@tech-pc04.chappy.com>
Permalink:  ../alpine.DEB.2.00.0810031610190.2149@tech-pc04.chappy.com/
Also on:    postgresql.org/message-id/alpine.DEB.2.00.0810031610190.2149@tech-pc04.chappy.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: yyl@chappy.com, Julie_Warden@nospam.hotmail.com
  Subject: Re: pg_dump and roles
  In-Reply-To: <alpine.DEB.2.00.0810031610190.2149@tech-pc04.chappy.com>

* 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