pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Will Storey <will@summercat.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Unexpected "canceling statement due to user request" error
Date: Sun, 01 Sep 2019 20:58:30 -0400
Message-ID: <14506.1567385910@sss.pgh.pa.us> (raw)
In-Reply-To: <20190902002120.jp4xjlfuvkwwksr3@dev.null>
References: <20190816210243.tohrx52bnbxx5zra@dev.null>
	<34a5ea6d-8dbb-e46a-0c08-fbbea4d4bcd7@aklaver.com>
	<20190817181335.wc7t3z3tfs7taiqo@dev.null>
	<11561.1567381579@sss.pgh.pa.us>
	<20190902002120.jp4xjlfuvkwwksr3@dev.null>

Will Storey <will@summercat.com> writes:
> On Sun 2019-09-01 19:46:19 -0400, Tom Lane wrote:
>> A separate question is how come the particular query you're complaining
>> about has (seemingly) a fairly wide window where it never does any
>> CHECK_FOR_INTERRUPTS call before terminating.  Perhaps there's someplace
>> we need to sprinkle a few more of those.

> Yeah, it is strange. There are many queries in this system with statement
> timeouts and this is the only one where I see this and it happens several
> times a day.

It'd be interesting to see EXPLAIN ANALYZE output from a typical execution
of that query.  Even better would be a test case (w/ tables and dummy
data) so somebody else could reproduce it; but maybe looking at EXPLAIN
ANALYZE would be enough to determine where we're missing checks.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <14506.1567385910@sss.pgh.pa.us>
Permalink:  ../14506.1567385910@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14506.1567385910@sss.pgh.pa.us

 · 

reply

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, will@summercat.com, adrian.klaver@aklaver.com
  Subject: Re: Unexpected "canceling statement due to user request" error
  In-Reply-To: <14506.1567385910@sss.pgh.pa.us>
  References: <20190816210243.tohrx52bnbxx5zra@dev.null> <34a5ea6d-8dbb-e46a-0c08-fbbea4d4bcd7@aklaver.com> <20190817181335.wc7t3z3tfs7taiqo@dev.null> <11561.1567381579@sss.pgh.pa.us> <20190902002120.jp4xjlfuvkwwksr3@dev.null> <14506.1567385910@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