Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 9050D2E0051; Wed, 11 Jun 2008 04:08:16 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 69349-01-3; Wed, 11 Jun 2008 04:08:10 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from pih-relay08.plus.net (pih-relay08.plus.net [212.159.14.134]) by developer.postgresql.org (Postfix) with ESMTP id E369C2E0071; Wed, 11 Jun 2008 04:07:30 -0300 (ADT) Received: from [84.51.143.99] (helo=server3.office.archonet.com) by pih-relay08.plus.net with esmtp (Exim) id 1K6KQa-0007Aw-J7; Wed, 11 Jun 2008 08:07:28 +0100 Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 72574274062; Wed, 11 Jun 2008 08:07:28 +0100 (BST) Message-ID: <484F79B0.5060401@archonet.com> Date: Wed, 11 Jun 2008 08:07:28 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: Richard Broersma CC: PostgreSQL - General ML , pgsql-odbc@postgresql.org Subject: Re: what gives: SELECT INVALID SELECT STATEMENT TO FORCE ODBC DRIVER TO UNPREPARED STATE References: <396486430806102106i4915845ag746566c333bdc684@mail.gmail.com> In-Reply-To: <396486430806102106i4915845ag746566c333bdc684@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Plusnet-Relay: c17e03e032b169334689c7d76b51c25d X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/333 X-Sequence-Number: 133862 Richard Broersma wrote: > Server logs below. Notice how an error raised in a connection to the > proj02u20411 database forces the transaction in the instrumentation > database to rollback. > Can anyone explain why connections that as far as PG should conserned > are unrelated are actually interferring with one another? I don't see any errors on proj... > -------------------------------------------------------------------------------- [snip] > 2008-06-10 15:04:52instrumentation ERROR: syntax error at or near > "SELECT" at character 16 > 2008-06-10 15:04:52instrumentation STATEMENT: SELECT INVALID SELECT > STATEMENT TO FORCE ODBC DRIVER TO UNPREPARED STATE > 2008-06-10 15:04:52instrumentation LOG: statement: ROLLBACK That appears to be a deliberate bad query issued by something (above the odbc layer?). I think you've got something sending "SELECT INVALID SELECT STATEMENT TO FORCE ODBC DRIVER TO UNPREPARED STATE" as a query to force a rollback. Why it's not just sending "ROLLBACK" I don't know. -- Richard Huxton Archonet Ltd