Re: Allow non-superuser to cancel superuser tasks. - Mailing list pgsql-hackers

From Kirill Reshke
Subject Re: Allow non-superuser to cancel superuser tasks.
Date
Msg-id CALdSSPjJ=ssU-sk3SdQK8j=4zegffrmWeM5vx+BGOhZ+5kmYxg@mail.gmail.com
Whole thread Raw
In response to Re: Allow non-superuser to cancel superuser tasks.  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Allow non-superuser to cancel superuser tasks.
List pgsql-hackers
> The script has two tests, and the CI is failing for the second test
> where we expect the signal to be processed:
> [12:48:23.370] #   Failed test 'autovacuum worker signaled with
> pg_signal_autovacuum_worker granted'
> [12:48:23.370] #   at t/006_signal_autovacuum.pl line 90.

> --
> Michael

That's very strange, because the test works fine on my virtual
machine. Also, it seems that it works in Cirrus [0], as there is this
line:

[autovacuum worker] FATAL:  terminating autovacuum process due to
administrator command

after `SET ROLE signal_autovacuum_worker_role;` and  `SELECT
pg_terminate_backend` in the log file.

Somehow the `node->log_contains` check does not catch that. Maybe
there is some issue with `$offset`? Will try to investigate

[0]
https://api.cirrus-ci.com/v1/artifact/task/5668467599212544/log/src/test/modules/test_misc/tmp_check/log/006_signal_autovacuum_node.log



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: relfilenode statistics
Next
From: Michael Paquier
Date:
Subject: Re: Is creating logical replication slots in template databases useful at all?