X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3AAAED1B498 for ; Sun, 25 Apr 2004 13:30:03 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 75289-07 for ; Sun, 25 Apr 2004 13:29:59 -0300 (ADT) Received: from ms-smtp-04.texas.rr.com (ms-smtp-04.texas.rr.com [24.93.47.43]) by svr1.postgresql.org (Postfix) with ESMTP id 9C5D0D1B448 for ; Sun, 25 Apr 2004 13:29:58 -0300 (ADT) Received: from 192.168.1.101 (cs2417411-36.houston.rr.com [24.174.11.36]) by ms-smtp-04.texas.rr.com (8.12.10/8.12.7) with ESMTP id i3PGTut1001113 for ; Sun, 25 Apr 2004 11:29:56 -0500 (CDT) From: Michael Satterwhite To: pgsql-sql@postgresql.org Subject: Python connection Date: Sun, 25 Apr 2004 11:29:54 -0500 User-Agent: KMail/1.5.1 MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200404251129.55480.michael@weblore.com> X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.4 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200404/270 X-Sequence-Number: 17645 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Consider the following snippet from a Python module: from pyPGSQL import libpq cn =3D libpq.PQconnectdb("dbname=3D'db', host=3D'xxx'") At this point, I get the error:=20 invalid connection option ", host If I'm reading the documentation for libpq correctly (it's safe to assume I= 'm=20 not), host appears to be the correct parameter for specifying the server=20 running PostgreSQL. What am I doing wrong -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQFAi+eCjeziQOokQnARAuYUAKCF5WHowC0tlto0IlAhcFpRtranjgCdEUzN 1tjHjkmE8CrSf/6tS2CwoSM=3D =3DFntg -----END PGP SIGNATURE-----