Re: Move passwords between databases

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Raj Mathur <raju(at)linux-delhi(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Move passwords between databases
Date: 2003-06-16 14:48:06
Message-ID: 2913.1055774886@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Raj Mathur <raju(at)linux-delhi(dot)org> 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jodi Kanter 2003-06-16 15:24:28 psql sequence question
Previous Message Raj Mathur 2003-06-16 14:35:44 Re: Move passwords between databases