Content-Length: 266886 | pFad | https://github.com/postgrespro/postgres/commit/4817da51f69ae7e965abf94aad01a4bab1404918

B4 worker_spi: Bump up max_worker_processes in TAP tests · postgrespro/postgres@4817da5 · GitHub
Skip to content

Commit 4817da5

Browse files
committed
worker_spi: Bump up max_worker_processes in TAP tests
mamba has detected a failure in the last test that should start a bgworker while bypassing the role login check. The buildfarm did not provide any information about its failure in the logs, but I suspect that this is caused by an exhaustion of the max_worker_processes slots set at 8 by default. In "normal" test runs, the number of bgworkers running at this stage of the test is already 7, so, if one of them spawns for example a parallel worker all the slots would be taken, preventing the last worker of the test to start. Reviewed-by: Tom Lane Discussion: https://postgr.es/m/ZSyebsiub88pyJJO@paquier.xyz
1 parent 1f89b73 commit 4817da5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/modules/worker_spi/t/001_worker_spi.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@
6363
$node->safe_psql('mydb', 'CREATE EXTENSION worker_spi;');
6464

6565
# Now load the module as a shared library.
66+
# Update max_worker_processes to make room for enough bgworkers, including
67+
# parallel workers these may spawn.
6668
$node->append_conf(
6769
'postgresql.conf', q{
6870
shared_preload_libraries = 'worker_spi'
6971
worker_spi.database = 'mydb'
7072
worker_spi.total_workers = 3
73+
max_worker_processes = 32
7174
});
7275
$node->restart;
7376

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres/commit/4817da51f69ae7e965abf94aad01a4bab1404918

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy