Why is Query NOT getting cancelled with SIGINT in PG14?

From: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Why is Query NOT getting cancelled with SIGINT in PG14?
Date: 2021-04-09 02:54:51
Message-ID: CALj2ACVbpoF6o+qdA7CSQ_Oc3JyANyx0-r6AMmt+xyt4Dq7A=Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Looks like the running query is not getting cancelled even though I
issue CTRL+C from psql or kill the backend with SIGINT. This only
happens with PG14 not in PG13. Am I missing something here? Is it a
bug?

create table t1(a1 int);
insert into t1 select * from generate_series(1,10000000000); --> I
chose an intentionally long running query, now either issue CTRL+C or
kill the backend with SIGINT, the query doesn't get cancelled. Note
that I don't even see "Cancel request sent" message on psql when I
issue CTRL+C.

With Regards,
Bharath Rupireddy.
EnterpriseDB: http://www.enterprisedb.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ajin Cherian 2021-04-09 02:59:32 Re: missing documentation for streaming in-progress transactions
Previous Message Andres Freund 2021-04-09 02:52:35 Re: test runner (was Re: SQL-standard function body)