Aurora Postgres - Logical Replication with different databases in same instance

0

We are trying to setup logical replication with aurora postgres using different databases on same instance but the instance just hangs. Is this currently supported or is there anything special we need to do for it to work? Thanks!

질문됨 2년 전842회 조회
1개 답변
0

It is possible that you have hit this -

When creating a replication slot (the default behavior), CREATE SUBSCRIPTION cannot be executed inside a transaction block.

Creating a subscription that connects to the same database cluster (for example, to replicate between databases in the same cluster or to replicate within the same database) will only succeed if the replication slot is not created as part of the same command. Otherwise, the CREATE SUBSCRIPTION call will hang. To make this work, create the replication slot separately (using the function pg_create_logical_replication_slot with the plugin name pgoutput) and create the subscription using the parameter create_slot = false. This is an implementation restriction that might be lifted in a future release.

[+] https://www.postgresql.org/docs/11/sql-createsubscription.html

AWS
D-Rao
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠