y39chen <yan-jack.chen@xxxxxxxxx> writes: > We found the panic happened when adding one of our patch. > switch (port->canAcceptConnections) > { > case CAC_STARTUP: > ereport(*LOG*, > (errcode(ERRCODE_CANNOT_CONNECT_NOW), > errmsg("the database system is starting up"))); > break; Did you not absorb the advice given in https://www.postgresql.org/message-id/23381.1494607092@xxxxxxxxxxxxx ? The above patch is simply an impossibly bad idea. Don't do it. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general