参见 src/backend/replication/walsender.c
/* * Return a string constant representing the state. This is used * in system views, and should *not* be translated. */ static const char * WalSndGetStateString(WalSndState state) { switch (state) { case WALSNDSTATE_STARTUP: return "startup"; case WALSNDSTATE_BACKUP: return "backup"; case WALSNDSTATE_CATCHUP: return "catchup"; case WALSNDSTATE_STREAMING: return "streaming"; case WALSNDSTATE_STOPPING: return "stopping"; } return "UNKNOWN"; }
更改历史记录
WALSNDSTATE_STOPPING
添加到 PostgreSQL 9.4 及更高版本,作为错误修复提交 1cdc0ab9 的一部分。