Python connection - Mailing list pgsql-sql

From Michael Satterwhite
Subject Python connection
Date
Msg-id 200404251129.55480.michael@weblore.com
Whole thread Raw
Responses Re: Python connection
List pgsql-sql
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Consider the following snippet from a Python module:
from pyPGSQL import libpq
cn = libpq.PQconnectdb("dbname='db', host='xxx'")

At this point, I get the error:
invalid connection option ", host

If I'm reading the documentation for libpq correctly (it's safe to assume I'm
not), host appears to be the correct parameter for specifying the server
running PostgreSQL. What am I doing wrong
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFAi+eCjeziQOokQnARAuYUAKCF5WHowC0tlto0IlAhcFpRtranjgCdEUzN
1tjHjkmE8CrSf/6tS2CwoSM=
=Fntg
-----END PGP SIGNATURE-----



pgsql-sql by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Question re: serial
Next
From: "Riccardo G. Facchini"
Date:
Subject: Re: Trigger calling a function HELP ME! (2)