]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
test_shm_mq: Set background worker names.
authorNathan Bossart <nathan@postgresql.org>
Mon, 2 Feb 2026 21:43:01 +0000 (15:43 -0600)
committerNathan Bossart <nathan@postgresql.org>
Mon, 2 Feb 2026 21:43:01 +0000 (15:43 -0600)
Oversight in commit 5373bc2a08.

Author: Michael Banck <mbanck@gmx.net>
Discussion: https://postgr.es/m/20260202173156.GB17962%40p46.dedyn.io%3Blightning.p46.dedyn.io

src/test/modules/test_shm_mq/setup.c

index ba2fd746d73ac5bc92c8fe3a61309bdec072d36c..579e5933d2811985ea17fd6a11d98270f64db927 100644 (file)
@@ -228,6 +228,7 @@ setup_background_workers(int nworkers, dsm_segment *seg)
        /* Register the workers. */
        for (i = 0; i < nworkers; ++i)
        {
+               snprintf(worker.bgw_name, BGW_MAXLEN, "test_shm_mq worker %d", i + 1);
                if (!RegisterDynamicBackgroundWorker(&worker, &wstate->handle[i]))
                        ereport(ERROR,
                                        (errcode(ERRCODE_INSUFFICIENT_RESOURCES),