Fix ps display for IO workers.
authorThomas Munro <[email protected]>
Fri, 21 Mar 2025 20:57:45 +0000 (09:57 +1300)
committerThomas Munro <[email protected]>
Fri, 21 Mar 2025 21:13:23 +0000 (10:13 +1300)
This code must have missed a memo about the backend type description
being supplied automatically these days, and was duplicating that
information.

Before: "io worker io worker: N"
After:  "io worker N"

src/backend/storage/aio/method_worker.c

index b6fbcc68bb10cc3906e77b2558bc5f4658d20a85..2be6bb8972b0c56be82a3672add4bd859970dc9a 100644 (file)
@@ -385,7 +385,7 @@ IoWorkerMain(const void *startup_data, size_t startup_data_len)
    /* also registers a shutdown callback to unregister */
    pgaio_worker_register();
 
-   sprintf(cmd, "io worker: %d", MyIoWorkerId);
+   sprintf(cmd, "%d", MyIoWorkerId);
    set_ps_display(cmd);
 
    /* see PostgresMain() */