From: Tom Lane <tgl@sss.pgh.pa.us>
To: reina_ga@hotmail.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Password with libpq
Date: Sun, 27 Jun 2004 18:12:37 -0400
Message-ID: <14320.1088374357@sss.pgh.pa.us> (raw)
In-Reply-To: <272e4be7.0406270913.7a65f99f@posting.google.com>
References: <272e4be7.0406270913.7a65f99f@posting.google.com>
reina_ga@hotmail.com (Tony Reina) writes:
> However, what about in the general case where my client program
> doesn't know if a password is required or not. Is there any libpq
> function to query the server if a password is required? Perhaps,
> there's a return value for PQconnectdb which would tell me that the
> connection failed because of the password? (In which case, I can ask
> for the password and try the connection again.)
Look into the psql source code; it does essentially this.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, reina_ga@hotmail.com
Subject: Re: Password with libpq
In-Reply-To: <14320.1088374357@sss.pgh.pa.us>
References: <272e4be7.0406270913.7a65f99f@posting.google.com> <14320.1088374357@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox