Fast shutdown stop should forcibly disconnect any active backends, even
authorHeikki Linnakangas <heikki@enterprisedb.com>
Fri, 7 Aug 2009 05:58:55 +0000 (05:58 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Fri, 7 Aug 2009 05:58:55 +0000 (05:58 +0000)
if a smart shutdown is already in progress. Backpatch to 8.3, this was broken
in the patch that introduced "dead-end backends".

Per report by Itagaki Takahiro, patch by Fujii Masao.

src/backend/postmaster/postmaster.c

index dbb0ece53b63c75235222f5cb0e666fb9db0220a..fad472e8895c43b28ed268c330cca455fd1f9ae9 100644 (file)
@@ -2094,6 +2094,7 @@ pmdie(SIGNAL_ARGS)
                        }
                        if (pmState == PM_RUN ||
                                pmState == PM_WAIT_BACKUP ||
+                               pmState == PM_WAIT_BACKENDS ||
                                pmState == PM_RECOVERY_CONSISTENT)
                        {
                                ereport(LOG,