Re: Storing pgpassword on Win32 Machines

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: pgadmin-support(at)postgresql(dot)org
Cc: bathdt(at)challengelogistics(dot)com(dot)au, abolzan(at)challengelogistics(dot)com(dot)au, sgolab(at)challengelogistics(dot)com(dot)au, cflynn(at)challengelogistics(dot)com(dot)au, gbekker(at)challengelogistics(dot)com(dot)au, cadiolis(at)gmail(dot)com, ep4(at)frontiernet(dot)net
Subject: Re: Storing pgpassword on Win32 Machines
Date: 2005-12-06 14:03:07
Message-ID: 43959A1B.4090305@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Although previous posts explicitely stated that no non-ascii chars where
involved, I'm quite sure that this is in fact the problem. I created a
user with a non-ascii password, and immediately was able to reproduce
the problem.

Passwords entered in pgAdmin are in Unicode, and are converted when sent
to the backend. Unfortunately, at connect time some default conversion
rules are applied, so pgAdmin can't be sure whether converted or
non-converted passwords are needed; it will try both when connecting
interactively.

When libpq evaluates pgpass.conf (or ~.pgpass on *ix), it will *not* try
several conversions, instead it will use the string as-is.

I changed pgAdmin now to store the pgpass info in the format that it has
found suitable from the last successful connect. Please check the latest
snapshot (win32 available now, *ix tomorrow after nightly build), and
give me feedback if it works for you. If it does not, I really need the
pgpass.conf line to dig further.

Regards,
Andreas

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Renaud Fortier 2005-12-06 16:03:05 crash when editing user's properties
Previous Message Andreas Pflug 2005-12-05 23:06:08 Re: pgadmin 1.4 not remembering password