pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedODBC queries die; "Unexpected protocol character from backend"
3+ messages / 2 participants
[nested] [flat]
* ODBC queries die; "Unexpected protocol character from backend"
@ 2001-12-03 05:03 Steve Frampton <frampton@codingstyle.com>
0 siblings, 0 replies; 3+ messages in thread
From: Steve Frampton @ 2001-12-03 05:03 UTC (permalink / raw)
To: pgsql-admin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello:
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
and not much else. If I stop and restart the Apache handler, the problem
is resolved -- until the next time.
I see nothing in the PostgreSQL logs on the database server which would
describe a possible cause. I'm not sure if it is related (it probably
is), but the PostgreSQL logs contain many lines of the form:
pq_flush: send() failed: Broken pipe
Prior to these lines were occasional lines:
pq_recvbuf: unexpected EOF on client connection
but I would assume the user just hit stop on their client browser rather
than waiting for the query to finish.
Any advice would be appreciated.
- -----------------< codingstyle.com: What's your style? >----------------
Steve Frampton <frampton@codingstyle.com> http://www.codingstyle.com
GNU Privacy Guard ID: 99F18E3A (see http://www.gnupg.org/ for details)
GNU-PG Fingerprint: 244D FA2F 5EAB 6F52 41B4 8FB4 D4F4 0738 99F1 8E3A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8Cwer1PQHOJnxjjoRAq/hAJ0XmYVk9GgYuAlNJimRMEDmlFi3SgCfSLhq
SESw7ymO6zoY/muv70buu/A=
=KGtZ
-----END PGP SIGNATURE-----
^ permalink raw reply [nested|flat] 3+ messages in thread
* ODBC queries die; "Unexpected protocol character from backend"
@ 2001-12-03 05:38 Steve Frampton <frampton@codingstyle.com>
0 siblings, 1 reply; 3+ messages in thread
From: Steve Frampton @ 2001-12-03 05:38 UTC (permalink / raw)
To: pgsql-admin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello:
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
and not much else. If I stop and restart the Apache handler, the problem
is resolved -- until the next time.
I see nothing in the PostgreSQL logs on the database server which would
describe a possible cause. I'm not sure if it is related (it probably
is), but the PostgreSQL logs contain many lines of the form:
pq_flush: send() failed: Broken pipe
Prior to these lines were occasional lines:
pq_recvbuf: unexpected EOF on client connection
but I would assume the user just hit stop on their client browser rather
than waiting for the query to finish.
Any advice would be appreciated.
- -----------------< codingstyle.com: What's your style? >----------------
Steve Frampton <frampton@codingstyle.com> http://www.codingstyle.com
GNU Privacy Guard ID: 99F18E3A (see http://www.gnupg.org/ for details)
GNU-PG Fingerprint: 244D FA2F 5EAB 6F52 41B4 8FB4 D4F4 0738 99F1 8E3A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8Cw/x1PQHOJnxjjoRAojGAJ9AJbOhOUtNUBr4ggs6CgmVAXBfnwCgrNHT
LxQAFiJ9THwmKtno/NEWVJs=
=bJD1
-----END PGP SIGNATURE-----
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: ODBC queries die; "Unexpected protocol character from backend"
@ 2001-12-03 14:41 Tom Lane <tgl@sss.pgh.pa.us>
parent: Steve Frampton <frampton@codingstyle.com>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2001-12-03 14:41 UTC (permalink / raw)
To: Steve Frampton <frampton@codingstyle.com>; +Cc: 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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-12-03 14:41 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-12-03 05:03 ODBC queries die; "Unexpected protocol character from backend" Steve Frampton <frampton@codingstyle.com>
2001-12-03 05:38 ODBC queries die; "Unexpected protocol character from backend" Steve Frampton <frampton@codingstyle.com>
2001-12-03 14:41 ` Tom Lane <tgl@sss.pgh.pa.us>
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