Problems with the Zope PyPgSQL adaptor

charlie clark <[email protected]> Thu, 25 Mar 2004 15:54:09 +0100
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Dear list,

I've been looking for a Python driver for PostgreSQL support and it seems 
that PyPgSQL is currently the only one to offer this. The driver seems to 
work fine so I tried the ZopeDA from CVS. This seems to have several 
problems: first of all I was not able to set up a connection using 
standard parameters:
e.g dbname=charlie host=localhost as the connection string
I get an error complaining that the database "dbname=charlie" doesn't 
exist. So I've hard-coded the connection string in db.py. It might be nice 
to know what I'm doing wrong.

The other error is that with or without unicode supports, result sets seem 
to have some kind of memory problem. Testing a single SELECT causing my 
system to run out of memory with Python swelling to well over 150 MB 
(probably more if I had the resources) and pg_ctl crashing at some point 
being unable to allocate heap to the child. I thought this might be 
related to unicode but it isn't.

System: Zope 2.6.2 (binary release, python 2.1, win32-x86), python 2.1.3, 
win32), PostgreSQL 7.4.1 for cygwin.

Any ideas?

Charlie

-- 
Charlie Clark
Helmholtzstr. 20
DÃŒsseldorf
D-40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click