Re: Confusion over Python drivers - Mailing list pgsql-hackers

From Massa, Harald Armin
Subject Re: Confusion over Python drivers
Date
Msg-id e3e180dc1002080355j10f3d206t9b2815abf7459641@mail.gmail.com
Whole thread Raw
In response to Re: Confusion over Python drivers  (Greg Smith <greg@2ndquadrant.com>)
List pgsql-hackers
Greg,
 
The point isn't so much "standardizing".  Having a low performance Python driver turns into a PostgreSQL PR issue.  

I totally agree.

>And if you're writing a database driver with performance as a goal, native Python is simply not >an option.

yes. Additionally: performance is not the only challenge. A native Python implementation, without using libpq, will have to reimplement much of libpq - just let me isolate proper escaping, and will have its own bugs.

Now, once *that* problem is under control, and there's a nicely licensed, well documented, major feature complete, and good performing driver, at that point it would be completely appropriate to ask "what about people who want support for other Python platforms and don't care if it's slower?".  

Pure Pythondrivers do exist now; and they are allready discussed in the summaries - which is a good thing. With my remarks I just want to recommend that we at least should document a position for them; and a way ahead. And I need a place to point out that Python grew a FFI with ctypes. Maybe someone will think of a DBAPI2.0 compatible ctypes libpq wrapper ...

Harald



--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607
no fx, no carrier pigeon
-
%s is too gigantic of an industry to bend to the whims of reality

pgsql-hackers by date:

Previous
From: Boszormenyi Zoltan
Date:
Subject: Re: [PATCH] Provide rowcount for utility SELECTs
Next
From: Heikki Linnakangas
Date:
Subject: Re: Bugs in b-tree dead page removal