X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 363CBD1B169 for ; Mon, 19 Jul 2004 07:19:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67895-03 for ; Mon, 19 Jul 2004 10:19:07 +0000 (GMT) Received: from blackcomb.delosis.com (blackcomb.delosis.com [193.201.201.182]) by svr1.postgresql.org (Postfix) with ESMTP id DD742D1B16E for ; Mon, 19 Jul 2004 07:19:01 -0300 (ADT) Received: from [212.158.204.197] (helo=[192.168.0.209]) by blackcomb.delosis.com with asmtp (Cipher TLSv1:RC4-MD5:128) (Exim 3.35 #1 (Debian)) id 1BmVEd-0007Lh-00 for ; Mon, 19 Jul 2004 11:19:03 +0100 Message-ID: <40FBA013.3090905@delosis.com> Date: Mon, 19 Jul 2004 11:18:59 +0100 From: John Rogers User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: hanging select processes Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/140 X-Sequence-Number: 4273 Hi, I am using the odbc driver to provide MS Acess with a view on our postgres db, securing the connection using stunnel. Everthing works fine, and it seems to be a fantastic solution to give our clients a user friendly look at the data. the only problem we have discovered when testing this out is that if the client runs a query in access and then kills the access process on their computer. we end up with a postgres SELECT thread running at 99% cpu time on our backend. I have found a thread possible hinting at this in the archives - regarding 'zombie' processes, but these are not zombie processes - we can kill them though a restart of postgres is required to get it all working again. Now we cant stop our clients being idiots - i guess we'd all be a lot happier if we could! Is there a way to mitigate or even stop this errant behaviour? surely postgres should stop the select if the client dissapears in a puff of smoke? cheers John