v1-0001-Fix-process-title-name-for-test_shm_mq-background.patch
text/x-diff
Filename: v1-0001-Fix-process-title-name-for-test_shm_mq-background.patch
Type: text/x-diff
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v1-0001
Subject: Fix process title/name for test_shm_mq background worker.
| File | + | − |
|---|---|---|
| src/test/modules/test_shm_mq/setup.c | 1 | 0 |
From 2cc615e50b71fc6afcdb40ee04a463c078d8c8c3 Mon Sep 17 00:00:00 2001 From: Michael Banck <mbanck@gmx.net> Date: Mon, 2 Feb 2026 18:23:20 +0100 Subject: [PATCH v1] Fix process title/name for test_shm_mq background worker. Since 5373bc2a, the process title was no longer set, so that the background worker process looked like "postgres:" in ps output or top. --- src/test/modules/test_shm_mq/setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/modules/test_shm_mq/setup.c b/src/test/modules/test_shm_mq/setup.c index ba2fd746d73..9925f974a98 100644 --- a/src/test/modules/test_shm_mq/setup.c +++ b/src/test/modules/test_shm_mq/setup.c @@ -220,6 +220,7 @@ setup_background_workers(int nworkers, dsm_segment *seg) worker.bgw_restart_time = BGW_NEVER_RESTART; sprintf(worker.bgw_library_name, "test_shm_mq"); sprintf(worker.bgw_function_name, "test_shm_mq_main"); + snprintf(worker.bgw_name, BGW_MAXLEN, "test_shm_mq worker"); snprintf(worker.bgw_type, BGW_MAXLEN, "test_shm_mq"); worker.bgw_main_arg = UInt32GetDatum(dsm_segment_handle(seg)); /* set bgw_notify_pid, so we can detect if the worker stops */ -- 2.39.5