Re: User table porting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux