pgsql: worker_spi: Fix another stability issue with BGWORKER_BYPASS_ALL

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: worker_spi: Fix another stability issue with BGWORKER_BYPASS_ALL
Дата
Msg-id E1qq0HD-000rHY-6w@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
worker_spi: Fix another stability issue with BGWORKER_BYPASS_ALLOWCONN

worker_spi_launch() may report that a worker stopped when it fails to
connect on a database that does not allow connections if the worker
exits before the SQL function checks for the current status of the
worker.  The test is switched to use Cluster::psql instead of
safe_psql() so as it does not fail hard when this query errors.  While
on it, this removes a query that looks at pg_stat_activity to simplify
the test, as a check on the contents of the server logs achieves the
same when the worker cannot connect to the database without
datallowconn.

Per buildfarm members kestrel, mamba and serinus.  Bonus thanks to Tom
Lane for providing the logs of the failure from mamba that the buildfarm
was not able to show up.  Note that I have reproduced the failure with a
hardcoded stop point.

Discussion: https://postgr.es/m/3365937.1696801735@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f483b209056b4181eb33b97cd6a30910a73c0f87

Modified Files
--------------
src/test/modules/worker_spi/t/001_worker_spi.pl | 26 ++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: use CURRENT_USER not USER in plpgsql trigger examples.
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Revert "Optimize various aggregate deserialization functions"