From: John Rogers <John@delosis.com>
To: pgsql-odbc@postgresql.org
Subject: hanging select processes
Date: Mon, 19 Jul 2004 11:18:59 +0100
Message-ID: <40FBA013.3090905@delosis.com> (raw)
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
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: John@delosis.com
Subject: Re: hanging select processes
In-Reply-To: <40FBA013.3090905@delosis.com>
References: <40FBA013.3090905@delosis.com>
* 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