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!
Topics
asked 3 months ago7 views
1 Answers
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
answered 3 months ago
Relevant questions
How to enable Logical Replication for existing Aurora PG 13 Cluster?
asked 6 months agoAurora PostgreSQL Replica Pricing
asked 2 years agoAurora Postgres - Logical Replication with different databases in same instance
asked 3 months agoIs supported Timestamptz datatype in DMS postgres replication?
asked 3 years agoRDS PostgreSQL cascading replication for Fivetran integration (logical replication not working on replica)
asked 2 days ago"Create Aurora Read Replica" option not available to migrate from RDS Postgres 11.12 to Aurora 11.12.
asked 2 months agoXA Global Transaction Support for Aurora Postgres
asked 3 months agoChanges to connection handling with Aurora Postgres?
Accepted Answerasked 3 years agoAurora Postgres 13 with IAM Auth - Unable to establish logical replication connection
asked 5 months agoUnable to use plugins to establish logical replication on source PostgreSQL
asked a year ago