i wont to setup replication between the master and slave streaming replication (physical replication ) it is possible in aurora PostgreSQL
i have tried to logical replication setup for Aurora PostgreSQL i wont to setup physical replication
Replication with Aurora PostgreSQL
When it comes to replication with Aurora PostgreSQL, you have the following options:
PostgreSQL native logical replication
PostgreSQL logical replication using the pglogical extension
Physical replication with Aurora global database
REF: https://aws.amazon.com/blogs/database/understand-replication-capabilities-in-amazon-aurora-postgresql/
Related
I am trying to query data between two servers of postgres. One is posgtres RDS of AWS and one is a aurora DB postgres. This posgtres RDS of AWS is a backup of the main aurora DB. I need to copy few rows from this backup to the main aurora Db instance.
i tried using dblink to connect two servers but it is not successful
I tried using dblink and it did not work. My postgres version is latest and above 13.6 and it is aurora serverless V2.
I'm trying to figure out an efficient way to copy data directly from my AWS RDS Production Postgres Instance to my AWS RDS Development Instance.
Right now I do a pg_dump on my local machine of the production instance. Then do a pg_restore on my local machine to the development RDS instance.
How can I copy the data directly from the Production RDS Postgres Instance to the Development RDS Postgres Instance?
I've migrated a On premise Oracle to Aurora Postgres on AWS RDS. my migration process is described in the below image.
I'm looking for an option to sync data from on prem oracle to aurora postgres (Something like, if one row inserted/updated in particular table, that data should come and update/insert in aurora postgres table).
Is it possible ?
Yes you'll want to use the DMS (Database Migration Service) which can do continuous data replication from source to target DB's
https://aws.amazon.com/dms/
I have postgresql 9.4 running in 5432 port with 2 databases. Now I want to create another instance in 5433 port (passive) and replicate only one database from 5432 instance (active). All table and data changes in database in 5432 instance (active) should replicate to the database in 5433 instance (passive).
I also have to create another database in 5433 instance (passive) and do CRUD operation in new database
Do we have a way to do this in postgres?
Streaming replication cannot do that, and logical replication (which could do that) was introduced in v10.
So your best option would be to upgrade.
Apart from that, you'd have to resort to legacy trigger-based replication solutions like Slony.
I'm following Realm Postgres Connector reference for syncing our Realm database with our Heroku PostgreSQL database: https://docs.realm.io/platform/using-synced-realms/server-side-usage/data-integration/postgres-connector#realm-data-adapter
It's working fine locally as I could connect to the PG local database withsuperuser role in order to use replication slots. However, superuser or replication roles cannot be set on Heroku PostgreSQL database, hence leading to the following PG error:
PGRES_FATAL_ERROR: ERROR: must be superuser or replication role to use replication slots
Does anybody already got Realm Postgres Connector working with a Heroku PG database? Or could think of a workaround?
Thanks for your help!
Lucas
Heroku support confirmed that there is currently no way to use replication roles:
Unfortunately, we do not allow creation of new replication slots by customers, as replication users are very privileged in Postgres, almost to the superuser level.
Hence I've decided to migrate to Amazon RDS. Here is a great article on how to perform such migration: https://www.lewagon.com/fr/blog/how-to-migrate-your-heroku-postgres-database-to-amazon-rds