From: Tom Lane <tgl@sss.pgh.pa.us>
To: Raj Mathur <raju@linux-delhi.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: Move passwords between databases
Date: Mon, 16 Jun 2003 10:48:06 -0400
Message-ID: <2913.1055774886@sss.pgh.pa.us> (raw)
In-Reply-To: <16109.51463.688614.39084@mail.linux-delhi.org>
References: <16109.51463.688614.39084@mail.linux-delhi.org>
Raj Mathur <raju@linux-delhi.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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, raju@linux-delhi.org
Subject: Re: Move passwords between databases
In-Reply-To: <2913.1055774886@sss.pgh.pa.us>
References: <16109.51463.688614.39084@mail.linux-delhi.org> <2913.1055774886@sss.pgh.pa.us>
* 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