pygresql and primary key

Tim Roberts timr at probo.com
Sat Oct 12 02:17:04 EDT 2002


Gerhard Häring <gerhard.haering at opus-gmbh.net> wrote:

>Marcin Kadziolka <marcin at linkor.com.pl> [2002-10-10 08:48 GMT]:
>> Hi!
>> 
>> I'm using a pg module wrapper from pygresql.
>
>Ouch. I'd recommend you use a DB-API module like pyPgSQL or psycopg. PyGreSQL
>has a DB-API module called pgdb, too.

It's clear that DB-API is the wave of the future, but I have to say that
the old pg methods make more sense to me in many situations.  The ability
to make a query without the overhead of creating and maintaining a cursor
just seems more efficient for smaller result sets.
--
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list