git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 991bb0f) | patch
worker_spi: Fix test failure with BGWORKER_BYPASS_ALLOWCONN
Fri, 6 Oct 2023 00:56:55 +0000 (09:56 +0900)
Fri, 6 Oct 2023 00:56:55 +0000 (09:56 +0900)
commit fd4d93d269c02081958e4c0c214f1d82186e5689
worker_spi: Fix test failure with BGWORKER_BYPASS_ALLOWCONN

A bgworker can spawn parallel workers of its own when executing queries,
and if the worker uses BGWORKER_BYPASS_ALLOWCONN while the database it
is connected to does not allow connections, a parallel worker would fail
to startup. In the case of this module, the step checking for the
presence of the schema to create was spawning a worker, failing the last
test introduced by 991bb0f9653c.

This issue could be reproduced with debug_parallel_query = 'regress',
for example.

Per buildfarm member crake.
src/test/modules/worker_spi/worker_spi.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /