Skip to content

Commit 18d67a8

Browse files
committed
Replace postmaster.c's own backend type codes with BackendType
Introduce a separate BackendType for dead-end children, so that we don't need a separate dead_end flag. Reviewed-by: Andres Freund <[email protected]> Discussion: https://www.postgresql.org/message-id/[email protected]
1 parent a274bbb commit 18d67a8

File tree

6 files changed

+168
-116
lines changed

6 files changed

+168
-116
lines changed

src/backend/postmaster/launch_backend.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ static child_process_kind child_process_kinds[] = {
174174
[B_INVALID] = {"invalid", NULL, false},
175175

176176
[B_BACKEND] = {"backend", BackendMain, true},
177+
[B_DEAD_END_BACKEND] = {"dead-end backend", BackendMain, true},
177178
[B_AUTOVAC_LAUNCHER] = {"autovacuum launcher", AutoVacLauncherMain, true},
178179
[B_AUTOVAC_WORKER] = {"autovacuum worker", AutoVacWorkerMain, true},
179180
[B_BG_WORKER] = {"bgworker", BackgroundWorkerMain, true},

0 commit comments

Comments
 (0)