[patch] Add process title to test_shm_mq worker

From: Michael Banck <mbanck(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [patch] Add process title to test_shm_mq worker
Date: 2026-02-02 17:31:56
Message-ID: 20260202173156.GB17962@p46.dedyn.io;lightning.p46.dedyn.io
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


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

Attachment Content-Type Size
v1-0001-Fix-process-title-name-for-test_shm_mq-background.patch text/x-diff 1.1 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2026-02-02 17:38:51 Re: [patch] Add process title to test_shm_mq worker
Previous Message Bertrand Drouvot 2026-02-02 17:19:43 Re: Flush some statistics within running transactions