X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 9176130EEEE for ; Mon, 16 Jun 2003 14:48:25 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 34948-06 for ; Mon, 16 Jun 2003 11:48:15 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 3398730EEF4 for ; Mon, 16 Jun 2003 11:48:13 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5GEm6U6002914; Mon, 16 Jun 2003 10:48:06 -0400 (EDT) To: Raj Mathur Cc: pgsql-admin@postgresql.org Subject: Re: Move passwords between databases In-reply-to: <16109.51463.688614.39084@mail.linux-delhi.org> References: <16109.51463.688614.39084@mail.linux-delhi.org> Comments: In-reply-to Raj Mathur message dated "Mon, 16 Jun 2003 19:11:27 +0530" Date: Mon, 16 Jun 2003 10:48:06 -0400 Message-ID: <2913.1055774886@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/165 X-Sequence-Number: 9156 Raj Mathur writes: > Using Postgresql 7.2.3 on Linux, is there an easy way to transfer user > passwords from one database to another? You could look at what pg_dumpall --globals-only does. > I have an application that creates data (and users) centrally and then > distributes them to remote databases. I can transfer everything else, > but do not know how to transfer MD5 passwords. AFAIK you can just do it. The CREATE or ALTER USER command should recognize the password as already encrypted and not munge it. Are you sure you are using the correct pg_hba.conf setup on the destination system? regards, tom lane