Re: ODBC queries die; "Unexpected protocol character from backend" - Mailing list pgsql-admin

From Tom Lane
Subject Re: ODBC queries die; "Unexpected protocol character from backend"
Date
Msg-id 12802.1007390481@sss.pgh.pa.us
Whole thread Raw
In response to ODBC queries die; "Unexpected protocol character from backend"  (Steve Frampton <frampton@codingstyle.com>)
List pgsql-admin
Steve Frampton <frampton@codingstyle.com> writes:
> I have a PostgreSQL 7.1.3 system which is accessed from an Apache CGI
> handler via ODBC (driven by libiodbc-3.0.5).  It has worked very well, but
> on two occasions queries just stop working.
> The Apache error log shows:
>   Unknown error;
>   Unexpected protocol character from backend (send_query), SQLSTATE=S1000
>   Unexpected protocol character from backend (send_query), SQLSTATE=S1000

This looks like the ODBC driver has somehow gotten out of sync with the
backend, and is looking for a message type character in the body of some
other message.  Hard to tell for sure though with so little info.  You
might need to add some debug instrumentation to the ODBC driver to try
to figure out what's happening.  At the very least, turn on query
logging at the postmaster so you can work out what query is causing this.

            regards, tom lane

pgsql-admin by date:

Previous
From: "Arguile"
Date:
Subject: FW: problems with postgresql speed
Next
From: Marc Schöchlin
Date:
Subject: Programming PHP Sorry, too many clients already ....