diff options
author | Heikki Linnakangas | 2024-08-01 20:23:47 +0000 |
---|---|---|
committer | Heikki Linnakangas | 2024-08-01 20:23:47 +0000 |
commit | ef4c35b4166e3c99558eba1bc324b2fde61d6ed5 (patch) | |
tree | c372645804462f7a4c282624f00f60b8d3352352 | |
parent | 3188a4582a8ce8223fba6e08636d8aaa4cbfd29f (diff) |
Fix outdated comment; all running bgworkers are in BackendList
Before commit 8a02b3d732, only bgworkers that connected to a database
had an entry in the Backendlist. Commit 8a02b3d732 changed that, but
forgot to update this comment.
Discussion: https://www.postgresql.org/message-id/[email protected]
-rw-r--r-- | src/include/postmaster/bgworker_internals.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/postmaster/bgworker_internals.h b/src/include/postmaster/bgworker_internals.h index 9106a0ef3f0..61ba54117a8 100644 --- a/src/include/postmaster/bgworker_internals.h +++ b/src/include/postmaster/bgworker_internals.h @@ -26,14 +26,14 @@ /* * List of background workers, private to postmaster. * - * A worker that requests a database connection during registration will have - * rw_backend set, and will be present in BackendList. Note: do not rely on - * rw_backend being non-NULL for shmem-connected workers! + * All workers that are currently running will have rw_backend set, and will + * be present in BackendList. */ typedef struct RegisteredBgWorker { BackgroundWorker rw_worker; /* its registry entry */ - struct bkend *rw_backend; /* its BackendList entry, or NULL */ + struct bkend *rw_backend; /* its BackendList entry, or NULL if not + * running */ pid_t rw_pid; /* 0 if not running */ int rw_child_slot; TimestampTz rw_crashed_at; /* if not 0, time it last crashed */ |