Re: \password in psql help - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: \password in psql help
Date
Msg-id 20080326134348.GC8100@alvh.no-ip.org
Whole thread Raw
In response to Re: \password in psql help  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Responses Re: \password in psql help  (Magnus Hagander <magnus@hagander.net>)
List pgsql-patches
Heikki Linnakangas wrote:
> Magnus Hagander wrote:
>> +     fprintf(output, _("  \\password [USERNAME]\n"
>> +                  "                 securely change the password for a user\n"));
>
> I would leave out the word "securely". Unless you want to provide
> another command for changing it insecurely ;-). What does it mean,
> anyway?

The point is that the password is encrypted on the client and
transmitted in md5 form.  If you were to use ALTER USER to change the
password, it could end up unencrypted in the server log.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Auto Partitioning Patch - WIP version 1
Next
From: Bruce Momjian
Date:
Subject: Re: Auto Partitioning Patch - WIP version 1