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 <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/a102f15f-eac4-4ff2-af02-f9ff209ec66f@iki.fi
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

+1
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)