Remove unnecessary assertion in postmaster.c
authorMichael Paquier
Thu, 15 Jul 2021 06:00:45 +0000 (15:00 +0900)
committerMichael Paquier
Thu, 15 Jul 2021 06:00:45 +0000 (15:00 +0900)
A code path asserted that the archiver was dead, but a check made that
impossible to happen.

Author: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACW=CYE1ars+2XyPTEPq0wQvru4c0dPZ=Nrn3EqNBkksvQ@mail.gmail.com
Backpatch-throgh: 14

src/backend/postmaster/postmaster.c

index 5a050898fec79a26edc23c79d516c1c3f22de86d..122c2b05bdb70a5680dccfa8cb971bf5c0cf0b22 100644 (file)
@@ -3934,7 +3934,6 @@ PostmasterStateMachine(void)
            Assert(CheckpointerPID == 0);
            Assert(WalWriterPID == 0);
            Assert(AutoVacPID == 0);
-           Assert(PgArchPID == 0);
            /* syslogger is not considered here */
            pmState = PM_NO_CHILDREN;
        }