From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dutt H Kalapatapu <dutt@eudoramail.com>
Cc: Clint Forgy <mo@midwestonline.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] fe_setauthsvc: invalid name. Ignoring... ERROR
Date: Mon, 16 Aug 1999 10:24:16 -0400
Message-ID: <706.934813456@sss.pgh.pa.us> (raw)
In-Reply-To: <GFLGPFOHCKJEOAAA@shared1-mail.whowhere.com>
"Dutt H Kalapatapu" <dutt@eudoramail.com> writes:
> I finally figured out why I am gettting an authentication failure. The
> problem was my previous code has the declaration for PgDatabase like
> this.
> PgDatabase * myDatabase = new PgDatabase("dbname=template1");
> I was running this code on solaris and everything was working fine. I
> looked at the PgDatabase class and figured out that we no longer need
> that 'dbname='. Now my code looks like this:
> PgDatabase * myDatabase = new PgDatabase("template1");
> and I could now run this from the command line.
Hmm, that explains a couple of things. The first example (with dbname=)
is correct for Postgres 6.5 and later, because PgDatabase's constructor
now takes a conninfo string a la PQconnectdb. Older releases used to
just take a database name, IIRC. So, you are apparently using a
back-rev Postgres on your "new" setup.
I had looked at the code in fe_setauthsvc() and was unable to figure out
a reason for it to fail (it's almost dead code, anyway) --- but I was
looking at the current code. I do seem to recall that pre-6.5 libpq++
would deliver this misleading error message on pretty much any failure
to connect, including specifying a wrong database name.
I'd recommend upgrading to 6.5.1 ASAP.
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, dutt@eudoramail.com, mo@midwestonline.com
Subject: Re: [INTERFACES] fe_setauthsvc: invalid name. Ignoring... ERROR
In-Reply-To: <706.934813456@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