Database module & multithreading

jupiter anil.jupiter9 at
Sat Mar 10 16:59:29 CET 2007

On Mar 10, 8:42 pm, a... at (Alex Martelli) wrote:
> jupiter <anil.jupit... at> wrote:
>    ...
> > Python 2.5. At this moment I am using Sqlite3 which is pretty fast but
> > it dosent allow me to use multi threading so which database module is
> > better in terms of multithreading
> Perhaps psycopg2 (with PostgreSQL as the engine), according to
> <> it is specifically
> "designed for heavily multi-threaded applications that create and
> destroy lots of cursors and make a conspicuous number of concurrent
> Alex

conn = psycopg2.connect("dbname=test user=test")

Traceback (most recent call last):
  File "<pyshell#8>", line 1, in <module>
    conn = psycopg2.connect("dbname=test user=test")
OperationalError: could not connect to server: Connection refused
	Is the server running on host "???" and accepting
	TCP/IP connections on port 5432?

this is the error I am getting with psycopg2 I want to access a local

More information about the Python-list mailing list