Re: ERROR: canceling query due to user request

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ERROR: canceling query due to user request
Дата
Msg-id 714.1094568878@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ERROR: canceling query due to user request  (Tore Halset <halset@pvv.ntnu.no>)
Ответы Re: ERROR: canceling query due to user request  (Tore Halset <halset@pvv.ntnu.no>)
Список pgsql-general
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

В списке pgsql-general по дате отправления:

Предыдущее
От: Mr Pink
Дата:
Сообщение: Re: ERROR: canceling query due to user request
Следующее
От: Dino Vliet
Дата:
Сообщение: Re: error: insert has more expressions than target column