|Full description=psycopg is a PostgreSQL database adapter for the Python programming language (just like pygresql and popy). It supports the full Python DBAPI 2.0 and it is thread safe at level 2. It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a conspicuous number of concurrent INSERTs or UPDATEs. Every open Python connection keeps a pool of real (UNIX or TCP/IP) connections to the database. Every time a new cursor is created, one of the unused connections from the pool is used instead of a new connection being opened. That makes psycopg very fast in typical client-server applications that create a servicing thread every time a client request arrives.

|Full description=psycopg is a PostgreSQL database adapter for the Python programming language (just like pygresql and popy). It supports the full Python DBAPI 2.0 and it is thread safe at level 2. It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a conspicuous number of concurrent INSERTs or UPDATEs. Every open Python connection keeps a pool of real (UNIX or TCP/IP) connections to the database. Every time a new cursor is created, one of the unused connections from the pool is used instead of a new connection being opened. That makes psycopg very fast in typical client-server applications that create a servicing thread every time a client request arrives.

Revision as of 10:17, 12 April 2011

Psychopg

http://initd.org/software/psycopg
psycopg is a PostgreSQL database adapter for the Python programming language (just like pygresql and popy). It supports the full Python DBAPI 2.0 and it is thread safe at level 2. It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a conspicuous number of concurrent INSERTs or UPDATEs. Every open Python connection keeps a pool of real (UNIX or TCP/IP) connections to the database. Every time a new cursor is created, one of the unused connections from the pool is used instead of a new connection being opened. That makes psycopg very fast in typical client-server applications that create a servicing thread every time a client request arrives.

The copyright and license notices on this page only apply to the
text on this page. Any software or copyright-licenses or other
similar notices described in this text has its own copyright notice
and license, which can usually be found in the distribution or license
text itself.