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 51A16D1B17A for ; Mon, 26 Jul 2004 11:26:53 -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 17271-04 for ; Mon, 26 Jul 2004 14:26:46 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id A9BBFD1B373 for ; Mon, 26 Jul 2004 11:26:36 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i6QEQj2Z027148; Mon, 26 Jul 2004 10:26:45 -0400 (EDT) To: John Rogers Cc: pgsql-odbc@postgresql.org Subject: Re: hanging select processes In-reply-to: <41050C42.1090207@delosis.com> References: <40FBA013.3090905@delosis.com> <19312.1090820718@sss.pgh.pa.us> <41050C42.1090207@delosis.com> Comments: In-reply-to John Rogers message dated "Mon, 26 Jul 2004 14:50:58 +0100" Date: Mon, 26 Jul 2004 10:26:45 -0400 Message-ID: <27147.1090852005@sss.pgh.pa.us> From: Tom Lane 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/143 X-Sequence-Number: 4276 John Rogers writes: > As for the last comment you made though, I've had a look at the load on > the server during this simulated Access crash, and it DOES seem to me > that the thread goes out of control afterwards. Setting up complex query > at the access end which will repeadedly select the same view from > postgres results in a relatively low load on the backend; but killing > access during this same query causes the SELECT process to ramp itself > up to 100% over the time course of a couple of seconds. Hmm. With no network delays for delivery of output data, you could expect the SELECT to become CPU-bound; it would just be sitting there running the query as fast as it could. So I'm not sure that the above- described behavior is a problem. However, if what is happening is that it's getting stuck in an infinite loop trying and failing to output data, then that's definitely bad. So I guess the question is: does the backend terminate after about the same number of CPU seconds that it would ordinarily take to process the query? Or does it seem to run forever until killed? Also, can you stop it with "kill -INT" when it's in this state? regards, tom lane