Re: Roles with empty password (probably bug in libpq and in psql as well).

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Guillaume Lelarge <guillaume(at)lelarge(dot)info>, pgsql-general(at)postgresql(dot)org
Subject: Re: Roles with empty password (probably bug in libpq and in psql as well).
Date: 2012-07-24 16:53:38
Message-ID: CAAfz9KNZvNne0yNtJYezsJQM8qhAP-QUzQMcTMnttmO7Pxg9Bw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2012/7/24 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>

> Dmitriy Igrishin <dmitigr(at)gmail(dot)com> writes:
> > 2012/7/24 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> >> Please note that empty and null are not the same thing...
>
> > Yes, I know. But why the ALTER ROLE treats '' as NULL and
> > as the result all of values of pg_catalog.pg_authid.rolpassword are
> always
> > NULL even when the password in ALTER ROLE was specified as ''? :-)
>
> It does not do that for me. What PG version are you testing?
>
Oops, I am sorry, Tom. It doesn't on my 9.2beta2.
Perhaps, it's too hot in Russia now...
But maybe it's worth it to add a parameter key word to libpq,
e.g. "passwd" which's empty value will be treated as an
empty password?

--
// Dmitriy.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message jkells 2012-07-24 20:28:01 insert binary data into a table column with psql
Previous Message Tom Lane 2012-07-24 16:14:14 Re: Roles with empty password (probably bug in libpq and in psql as well).