Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 998C662FEFB for ; Tue, 10 Mar 2009 14:23:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 04036-06 for ; Tue, 10 Mar 2009 14:23:10 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outbound-mail-342.bluehost.com (outbound-mail-342.bluehost.com [66.147.249.3]) by mail.postgresql.org (Postfix) with SMTP id 8916363322B for ; Tue, 10 Mar 2009 14:23:09 -0300 (ADT) Received: (qmail 9791 invoked by uid 0); 10 Mar 2009 17:18:43 -0000 Received: from unknown (HELO box498.bluehost.com) (66.147.242.98) by outboundproxy7.bluehost.com.bluehost.com with SMTP; 10 Mar 2009 17:18:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=consistentstate.com; h=Received:From:Organization:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id:X-Identified-User; b=R94UOf59z4aoHtHD/Brw5p88Mt3uki+jHniaIi+ztLsEceJ8cITXcm7vMnJa3SNBIKnW7I0tkfZumGybni/OURRDgbP7XXoSdf8lf61JIDMEWH9uHteYFb24awjYJtFz; Received: from 206-124-26-2.static.forethought.net ([206.124.26.2] helo=issac.consistentstate.com) by box498.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1Lh5fV-0007jG-Tp for pgsql-admin@postgresql.org; Tue, 10 Mar 2009 11:23:06 -0600 From: Kevin Kempter Organization: Consistent State To: pgsql-admin@postgresql.org Subject: Re: User table porting Date: Tue, 10 Mar 2009 11:23:01 -0600 User-Agent: KMail/1.11.0 (Linux/2.6.27.19-170.2.35.fc10.x86_64; KDE/4.2.0; x86_64; ; ) References: <1178C89D-62DF-44AA-A8CB-97FA782E869D@indiana.edu> In-Reply-To: <1178C89D-62DF-44AA-A8CB-97FA782E869D@indiana.edu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-00=_1HqtJ+U8TfXidSl" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903101123.01310.kevink@consistentstate.com> X-Identified-User: {3049:box498.bluehost.com:consist3:consistentstate.com} {sentby:smtp auth 206.124.26.2 authed with kevink+consistentstate.com} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200903/133 X-Sequence-Number: 31633 --Boundary-00=_1HqtJ+U8TfXidSl Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit On Tuesday 10 March 2009 11:13:54 Carol Walter wrote: > I want to recreate users with their passwords from one database > cluster on another database cluster. What would be the best way for > me to do this? > > Thanks, > Carol from the "old" server run this (where is the new server): pg_dumpall -g | psql -h --Boundary-00=_1HqtJ+U8TfXidSl Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit On Tuesday 10 March 2009 11:13:54 Carol Walter wrote:
> I want to recreate users with their passwords from one database
> cluster on another database cluster. What would be the best way for
> me to do this?
>
> Thanks,
> Carol


from the "old" server run this (where <new_db_cluster> is the new server):


pg_dumpall -g | psql -h <new_db_cluster>

--Boundary-00=_1HqtJ+U8TfXidSl--