[patch] Add process title to test_shm_mq worker

Michael Banck <mbanck@gmx.net>

From: Michael Banck <mbanck@gmx.net>
To: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-02-02T17:31:56Z
Lists: pgsql-hackers

Attachments

Hi,

albeit just a test module, the test_shm_mq test can run a few seconds,
and during that, it looks like this:

mbanck     2701  - Rsfo  0:00.51 postgres:

With the attached patch, it looks like this:

mbanck     2780  - Rsfo  0:01.63 postgres: test_shm_mq worker

I think the process title got lost in 5373bc2a where bgw_name was
replaced with bgw_type. Maybe that was intentional, but the
corresponding change to src/test/modules/worker_spi was made so that
bgw_name was preserved/changed.


Michael

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. test_shm_mq: Set background worker names.