pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Satterwhite <michael@weblore.com>
To: pgsql-sql@postgresql.org
Subject: Python connection
Date: Sun, 25 Apr 2004 11:29:54 -0500
Message-ID: <200404251129.55480.michael@weblore.com> (raw)

-----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-----




view thread (2+ messages)  latest in thread

Message-ID: <200404251129.55480.michael@weblore.com>
Permalink:  ../200404251129.55480.michael@weblore.com/
Also on:    postgresql.org/message-id/200404251129.55480.michael@weblore.com

 · 

reply

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-sql@postgresql.org
  Cc: michael@weblore.com
  Subject: Re: Python connection
  In-Reply-To: <200404251129.55480.michael@weblore.com>

* 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