pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Python connection
2+ messages / 2 participants
[nested] [flat]

* Python connection
@ 2004-04-25 16:29  Michael Satterwhite <michael@weblore.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Michael Satterwhite @ 2004-04-25 16:29 UTC (permalink / raw)
  To: 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-----




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Python connection
@ 2004-04-26 08:29  Karsten Hilbert <Karsten.Hilbert@gmx.net>
  parent: Michael Satterwhite <michael@weblore.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Karsten Hilbert @ 2004-04-26 08:29 UTC (permalink / raw)
  To: pgsql-sql

a) this is the wrong mailing list for your question
b) obviously, it doesn't like the "," part (and possibly the
   "host" part but that remains to be seen), try separating by
   ":" or just space or whatever libpq docs say
c) any particular reason you don't use the Python DB API ?

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-04-26 08:29 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-25 16:29 Python connection Michael Satterwhite <michael@weblore.com>
2004-04-26 08:29 ` Karsten Hilbert <Karsten.Hilbert@gmx.net>

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