Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D457B64FCE8 for ; Wed, 10 Dec 2008 09:09:53 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 24339-02 for ; Wed, 10 Dec 2008 09:09:49 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from app1.ihackr.net (app1.ihackr.net [209.61.157.9]) by mail.postgresql.org (Postfix) with ESMTP id 5F89264FCD7 for ; Wed, 10 Dec 2008 09:09:49 -0400 (AST) Received: by app1.ihackr.net (Postfix, from userid 502) id 91B975902E4; Wed, 10 Dec 2008 07:09:46 -0600 (CST) Received: from [172.16.10.103] (cpe-72-183-237-242.satx.res.rr.com [72.183.237.242]) by app1.ihackr.net (Postfix) with ESMTP id 3AF0D590144; Wed, 10 Dec 2008 07:09:46 -0600 (CST) References: <18c933b9-afe9-48af-849c-50eb6d3f87d8@c36g2000prc.googlegroups.com> Message-Id: <377DA777-0632-4EE0-9ED8-8F7D13A82CC5@zeroaccess.org> From: Marcelo Martins To: Chris Curvey In-Reply-To: <18c933b9-afe9-48af-849c-50eb6d3f87d8@c36g2000prc.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (5G77) Mime-Version: 1.0 (iPhone Mail 5G77) Subject: Re: moving users/roles from one server to another? Date: Wed, 10 Dec 2008 07:08:19 -0600 Cc: "pgsql-admin@postgresql.org" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/94 X-Sequence-Number: 30927 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 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