pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve Frampton <frampton@codingstyle.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: ODBC queries die; "Unexpected protocol character from backend"
Date: Mon, 03 Dec 2001 09:41:21 -0500
Message-ID: <12802.1007390481@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.33.0112022137290.25274-100000@vine.phpwebhosting.com>
References: <Pine.LNX.4.33.0112022137290.25274-100000@vine.phpwebhosting.com>

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



view thread (3+ messages)

Message-ID: <12802.1007390481@sss.pgh.pa.us>
Permalink:  ../12802.1007390481@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12802.1007390481@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, frampton@codingstyle.com
  Subject: Re: ODBC queries die; "Unexpected protocol character from backend"
  In-Reply-To: <12802.1007390481@sss.pgh.pa.us>
  References: <Pine.LNX.4.33.0112022137290.25274-100000@vine.phpwebhosting.com> <12802.1007390481@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox