pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcelo Martins <pglists@zeroaccess.org>
To: Chris Curvey <ccurvey@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: moving users/roles from one server to another?
Date: Wed, 10 Dec 2008 07:08:19 -0600
Message-ID: <377DA777-0632-4EE0-9ED8-8F7D13A82CC5@zeroaccess.org> (raw)
In-Reply-To: <18c933b9-afe9-48af-849c-50eb6d3f87d8@c36g2000prc.googlegroups.com>
References: <18c933b9-afe9-48af-849c-50eb6d3f87d8@c36g2000prc.googlegroups.com>

pg_dumpall has a flag for globals only which dumps an SQL file with  
that info. Check it out pg_dumpall --help


On Dec 4, 2008, at 10:55, Chris Curvey <ccurvey@gmail.com> wrote:

> I'm a newbie to PG administration (although I have experience with
> other DBs).  I need to move a single database to a brand new server.
>
> I've set up the new server with initdb, set up pg_hba.conf and
> postgresql.conf, and I can use dump and restore to move the database
> to the new environment.
>
> What I can't figure out is how to move all the existing users and
> roles over.  I know about pg_dumpall, but that seems to be overkill --
> I don't need to move *all* the databases on my original server, just
> one of them.
>
> Is there a way to copy over just the users (with their passwords) and
> the roles?
>
>
> -- 
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin



view thread (3+ messages)

Message-ID: <377DA777-0632-4EE0-9ED8-8F7D13A82CC5@zeroaccess.org>
Permalink:  ../377DA777-0632-4EE0-9ED8-8F7D13A82CC5@zeroaccess.org/
Also on:    postgresql.org/message-id/377DA777-0632-4EE0-9ED8-8F7D13A82CC5@zeroaccess.org

 · 

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: pglists@zeroaccess.org, ccurvey@gmail.com
  Subject: Re: moving users/roles from one server to another?
  In-Reply-To: <377DA777-0632-4EE0-9ED8-8F7D13A82CC5@zeroaccess.org>

* 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