如何在postgres上的级联备用服务器上进行逻辑复制?

How to do logical replication on cascading standby server on postgres?

是否可以在处于级联复制模式的备用服务器上启用逻辑复制?

根据Debezium connector for PostgreSQL docs:

As of release 12, PostgreSQL allows logical replication slots only on primary servers. This means that you can point a Debezium PostgreSQL connector to only the active primary server of a database cluster. Also, replication slots themselves are not propagated to replicas. If the primary server goes down, a new primary must be promoted.

Note. There are discussions in the PostgreSQL community around a feature called failover slots that would help mitigate this problem, but as of PostgreSQL 12, they have not been implemented.

最新的 PostgreSQL 版本 13 未实现此功能。

https://debezium.io/documentation/reference/connectors/postgresql.html