Re: whats the deal with -u ? - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: whats the deal with -u ?
Date
Msg-id 87odczmhmz.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: whats the deal with -u ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: whats the deal with -u ?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
>> I have never understood what's the point of having an option to force a
>> password prompt.  I wonder why don't we deprecate -W?
>
> It's not *completely* useless, because you only need one connection
> attempt not two --- normally, psql gets rejected once before figuring
> out that it must ask for a password.  

Hm, I wonder if this fixes one of the annoyances of kerberos support. If you
have kerberos tickets psql uses the principal name from them rather than your
unix username. If you don't actually use kerberos authentication for your
postgres server then that means you have to specify the user on the command
line all the time.

Don't actually have a psql built with kerberos authentication handy but I'll
try to remember to test this the next time I do.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Get trained by Bruce Momjian - ask me about
EnterpriseDB'sPostgreSQL training!
 


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: pgsql: The E.
Next
From: Alvaro Herrera
Date:
Subject: Re: whats the deal with -u ?