From: Tom Lane <tgl@sss.pgh.pa.us>
To: John Rogers <John@delosis.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: hanging select processes
Date: Mon, 26 Jul 2004 10:26:45 -0400
Message-ID: <27147.1090852005@sss.pgh.pa.us> (raw)
In-Reply-To: <41050C42.1090207@delosis.com>
References: <40FBA013.3090905@delosis.com>
<19312.1090820718@sss.pgh.pa.us>
<41050C42.1090207@delosis.com>
John Rogers <John@delosis.com> 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
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-odbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, John@delosis.com
Subject: Re: hanging select processes
In-Reply-To: <27147.1090852005@sss.pgh.pa.us>
References: <40FBA013.3090905@delosis.com> <19312.1090820718@sss.pgh.pa.us> <41050C42.1090207@delosis.com> <27147.1090852005@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