Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> BTW I notice that this does not work unless the client supplies the
> password the first time around; psql does not retry. It only works if I
> do "psql -W".
Huh, that sounds like a bug someplace. Care to trace through it?
regards, tom lane