X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0D0415E473C for ; Tue, 7 Sep 2004 15:54:36 +0100 (BST) 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 24971-10 for ; Tue, 7 Sep 2004 14:54:34 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id C70A95E4735 for ; Tue, 7 Sep 2004 15:54:30 +0100 (BST) 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 i87Esc3E000715; Tue, 7 Sep 2004 10:54:38 -0400 (EDT) To: Tore Halset Cc: pgsql-general@postgresql.org Subject: Re: ERROR: canceling query due to user request In-reply-to: References: Comments: In-reply-to Tore Halset message dated "Tue, 07 Sep 2004 13:33:52 +0200" Date: Tue, 07 Sep 2004 10:54:38 -0400 Message-ID: <714.1094568878@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: 200409/260 X-Sequence-Number: 65466 Tore Halset 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