pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
To: Kevin Kempter <kevink@consistentstate.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: User table porting
Date: Tue, 10 Mar 2009 19:29:53 +0100
Message-ID: <49B6B1A1.40908@gmx.de> (raw)
In-Reply-To: <200903101123.01310.kevink@consistentstate.com>
References: <1178C89D-62DF-44AA-A8CB-97FA782E869D@indiana.edu>
	<200903101123.01310.kevink@consistentstate.com>

Hello,

Kevin Kempter wrote:

> 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?

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

> pg_dumpall -g | psql -h <new_db_cluster>

Isn't it generally better to use the newer binaries from the target
server especially with psql?
I remember getting quite a few errors when restoring a pg_dumpall from
an 8.1 server, because the create user syntax in the dump file was obsolete.
You might need some more options for piping (-U etc.):

http://www.postgresql.org/docs/8.3/interactive/app-pg-dumpall.html

Peter



view thread (5+ messages)  latest in thread

Message-ID: <49B6B1A1.40908@gmx.de>
Permalink:  ../49B6B1A1.40908@gmx.de/
Also on:    postgresql.org/message-id/49B6B1A1.40908@gmx.de

 · 

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: Jan-Peter.Seifert@gmx.de, kevink@consistentstate.com
  Subject: Re: User table porting
  In-Reply-To: <49B6B1A1.40908@gmx.de>

* 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