
Python and PostgreSQL-6.2 - no go?
Hi
I can't make the new postgresql-6.2 to work with python-1.4 and
PyGres95-1.0b. The postmaster (with -d 1) reports:
postmaster: ServerLoop: 1 sockets pending
postmaster: ServerLoop: connect on 4
postmaster: ServerLoop: nSelected=0
postmaster: ServerLoop: port 4 pending
postmaster: ServerLoop: 1 sockets pending
postmaster: ServerLoop: nSelected=1
postmaster: ServerLoop: port 4 pending
postmaster: ServerLoop: handling 4
postmaster: ServerLoop: done with 4
and python reports:
Python 1.4 (Mar 18 1997) [GCC 2.7.2]
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Quote:
>>> import pg95
>>> db=pg95.connect('dbhost',5432,None,None,'mydb')
Traceback (innermost last):
File "<stdin>", line 1, in ?
pg95.error: PQexec() -- Request was sent to backend, but backend closed the channel before responding. This probably means the backend terminated abnormally before or while processing the request.
Anyone got any clue? It was working just fine with postgresql-6.1.1
and I have recompiled python with the new libpq. psql is working just
fine.
Is there any other way to make Python talk to release 6.2? (I also
need to JDBC interface, which is new i 6.2, so don't just tell me to
go back to 6.1.1 :-)
Take care,
Karsten
--
M.Sc.E.E, Sys/Net-administrator, BOFH, Aalborg University, Denmark
http://www.*-*-*.com/ ~karthy/ for more information.
SunSITE Denmark Manager ( http://www.*-*-*.com/ )
# $Id: .signature,v 1.1 1997/06/18 08:30:00 karthy Exp $