From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tore Halset <halset@pvv.ntnu.no>
Cc: pgsql-general@postgresql.org
Subject: Re: ERROR: canceling query due to user request
Date: Tue, 07 Sep 2004 10:54:38 -0400
Message-ID: <714.1094568878@sss.pgh.pa.us> (raw)
In-Reply-To: <CB968022-00C1-11D9-8D0A-000A95CD827E@pvv.ntnu.no>
References: <CB968022-00C1-11D9-8D0A-000A95CD827E@pvv.ntnu.no>
Tore Halset <halset@pvv.ntnu.no> writes:
> I am trying to port an old java application from MS SQL Server to
> PostgreSQL running on Mac OS X.
> ...
> The problem is that the server returns "ERROR: canceling query due to
> user request" on some of the queries.
The proximate cause of this has to be that something is sending SIGINT
to the backend process that's running the query. You'll have to look
around for reasons for that to happen, if you're sure that your client
code isn't doing it. A couple of possibilities come to mind:
1. You accidentally typed ^C on the terminal window the postmaster was
launched from.
2. The postmaster was launched under non-infinite resource limits
(ulimit settings) and whatever enforces that on OS X does it by sending
SIGINT rather than the more standard signals for such things. Do the
SIGINTs come at predictable times, such as when the backend has
accumulated X amount of runtime?
This isn't the first time I've heard of unexpected SIGINTs being
delivered on OS X. (I vaguely recall seeing the MySQL guys complaining
of just that.) I have not seen it happen in my own testing, though,
so I'm not sure what's going on. Let us know if you find the cause.
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-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, halset@pvv.ntnu.no, pgsql-general@postgresql.org
Subject: Re: ERROR: canceling query due to user request
In-Reply-To: <714.1094568878@sss.pgh.pa.us>
References: <CB968022-00C1-11D9-8D0A-000A95CD827E@pvv.ntnu.no> <714.1094568878@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