Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fB3EfJm98543 for ; Mon, 3 Dec 2001 09:41:19 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id fB3EfMi12805; Mon, 3 Dec 2001 09:41:22 -0500 (EST) To: Steve Frampton cc: pgsql-admin@postgresql.org Subject: Re: ODBC queries die; "Unexpected protocol character from backend" In-reply-to: References: Comments: In-reply-to Steve Frampton message dated "Sun, 02 Dec 2001 21:38:55 -0800" Date: Mon, 03 Dec 2001 09:41:21 -0500 Message-ID: <12802.1007390481@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200112/10 X-Sequence-Number: 2734 Steve Frampton 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