postgresql/src
Michael Paquier 79a5911fe6 Add more debugging information for bgworker termination tests of worker_spi
widowbird has failed again after af8837a10b, with the same symptoms of
a backend still lying around when attempting a database rename with a
bgworker connected to the database being renamed.

We are still not sure yet how the failure can be reached, if this is a
timing issue in the test or an actual bug in the logic used for
interruptible bgworkers.  This commit adds more debugging information in
the backend to help with the analysis as a temporary measure.

Another thing I have noticed is that the queries launching the dynamic
bgworkers or checking pg_stat_activity would connect to the database
renamed.  These are switched to use 'postgres'.  That will hopefully
remove some of the friction of the test, but I doubt that this is the
end of the story.

Discussion: https://postgr.es/m/abtJLEAsf1HZXWdR@paquier.xyz
2026-03-19 11:39:31 +09:00
..
backend Add more debugging information for bgworker termination tests of worker_spi 2026-03-19 11:39:31 +09:00
bin pg_restore: Remove unnecessary strlen() calls in options parsing. 2026-03-18 14:22:15 -05:00
common Implement unaccent Unicode data update in meson 2026-03-18 13:42:05 +01:00
fe_utils SQL Property Graph Queries (SQL/PGQ) 2026-03-16 10:14:18 +01:00
include ssl: Serverside SNI support for libpq 2026-03-18 12:37:11 +01:00
interfaces Fix -Wstrict-prototypes warning in ecpg_init_sqlca() declaration. 2026-03-18 15:27:49 -04:00
makefiles meson: Add {perl|python}_includespec to generated Makefile.global 2026-03-18 11:09:14 +01:00
pl Reduce header inclusions via execnodes.h 2026-03-16 14:34:57 +01:00
port Check for memset_explicit() and explicit_memset() 2026-03-02 07:51:19 +01:00
template Switch the semaphore API on Solaris to unnamed POSIX. 2026-03-14 14:10:32 -04:00
test Add more debugging information for bgworker termination tests of worker_spi 2026-03-19 11:39:31 +09:00
timezone Use fallthrough attribute instead of comment 2026-02-19 08:51:12 +01:00
tools Exclude contrib/pg_plan_advice/pgpa_parser.h from headerscheck. 2026-03-18 13:10:22 -04:00
tutorial Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in tests: Add a test C++ extension module 2026-01-20 16:42:30 +01:00
Makefile.shlib Restore AIX support. 2026-02-23 13:34:22 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00