Re: problem connecting with libpq++ interface - Mailing list pgsql-novice

From Tom Lane
Subject Re: problem connecting with libpq++ interface
Date
Msg-id 17713.971149878@sss.pgh.pa.us
Whole thread Raw
In response to problem connecting with libpq++ interface  ("Deniz Hastorun" <denizh@itu.edu.tr>)
List pgsql-novice
"Deniz Hastorun" <denizh@itu.edu.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

pgsql-novice by date:

Previous
From: "Deniz Hastorun"
Date:
Subject: problem connecting with libpq++ interface
Next
From: Greger Haga
Date:
Subject: Re: Thanks...and then the question:Architecture.