postgresql/src/backend/postmaster
Heikki Linnakangas d63d486d6c Remove assertions that some compiler say are tautological
To avoid the compiler warnings:

    launch_backend.c:211:39: warning: comparison of constant 16 with expression of type 'BackendType' (aka 'enum BackendType') is always true [-Wtautological-constant-out-of-range-compare]
    launch_backend.c:233:39: warning: comparison of constant 16 with expression of type 'BackendType' (aka 'enum BackendType') is always true [-Wtautological-constant-out-of-range-compare]

The point of the assertions was to fail more explicitly if someone
adds a new BackendType to the end of the enum, but forgets to add it
to the child_process_kinds array. It was a pretty weak assertion to
begin with, because it wouldn't catch if you added a new BackendType
in the middle of the enum. So let's just remove it.

Per buildfarm member ayu and a few others, spotted by Tom Lane.

Discussion: https://www.postgresql.org/message-id/4119680.1710913067@sss.pgh.pa.us
2024-03-20 09:14:51 +02:00
..
autovacuum.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
auxprocess.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
bgworker.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
bgwriter.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
checkpointer.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
fork_process.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
interrupt.c Centralize logic for restoring errno in signal handlers. 2024-02-14 16:34:18 -06:00
launch_backend.c Remove assertions that some compiler say are tautological 2024-03-20 09:14:51 +02:00
Makefile Move some functions from postmaster.c to a new source file 2024-03-18 11:35:05 +02:00
meson.build Move some functions from postmaster.c to a new source file 2024-03-18 11:35:05 +02:00
pgarch.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
postmaster.c Move code for backend startup to separate file 2024-03-18 11:38:10 +02:00
startup.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
syslogger.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
walsummarizer.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
walwriter.c Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00