Re: problem connecting with libpq++ interface

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: denizh(at)itu(dot)edu(dot)tr
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: problem connecting with libpq++ interface
Date: 2000-10-10 03:51:18
Message-ID: 17713.971149878@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Deniz Hastorun" <denizh(at)itu(dot)edu(dot)tr> writes:
> Error returned:ERROR: PQconnectdb() - Missing '=' after 'template1' in
> conninfo

PQconnectdb doesn't take a simple database name as argument; it takes
a string containing keyword=value pairs. The correct argument would
be something like "dbname=template1". See
http://www.postgresql.org/users-lounge/docs/7.0/postgres/libpq-chapter.htm#AEN22236

If you see anyplace in current documentation that indicates differently,
that's a documentation error --- please let us know about it!

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Gerhard Kroder 2000-10-10 08:28:40 Hello to pgsql!
Previous Message Greger Haga 2000-10-10 02:45:39 Re: Thanks...and then the question:Architecture.