Need Help,
How to configure a different way of accessing the database in OpenERP?
I have one already installed OpenERP server version 5.16 and the PostgreSQL 9.1, I did a master-slave database replication to another server. so I have three servers, the first one already installed OpenERP and PostgreSQL, the second master replication of postgresql, the third slave replication of postgresql, how do I access a database that has been replicated?
Related
I have a use case where I have keep sync two databases on my local windows machine.
For example DB_primary and DB_secondary both has one table employee.
How to create a read replica to keep both those DBs in sync?
Please note: I am not using any cloud. I have Postgresql v14 installed on my windows machine.
my primary server is Postgresql-9.4 and the secondary server is Postgresql-13, I followed all the steps but while restarting the secondary server, I am facing the error "An old version of the database format was found. You need to dump and reload before using PostgreSQL 13." how I should resolve it.
You cannot have streaming replication between different PostgreSQL versions, and you cannot have logical replication with versions less than v10.
You will have to use trigger-based replication like with Slony-I.
I am using EDB Postgres Replication server to setup a replication for my EDB Advanced Server.
Running it on 3 VMs using Centos 7. All have Advanced Server 13 installed.
Creating a Single-Master Replication (SMR)
Publication Server has been setup and a database has been appointed as the controller database.
Encountering a problem when creating the Subscription server, receiving an error of Database connection cannot be added. Controller database is not initialized yet.
All server services are running and all have the proper connection on the configuration file.
How can I resolve this?
I'd like to have my slave Postgres DB, which is is hosted on Heroku, replicate from a master DB on my laptop. Is this possible? With version 9.6 or 9.4
I read the question: Follow external database from Heroku
but it was for version 9.1
If you speak of streaming replication, then it is not possible and will never be I think. Heroku shares DATABASE - not cluster and streaming replication would require the whole cluster and REPLICATION role access.
I have a requirement of replicate data from AWS RDS Postgres(9.6) Database to On-Premise Postgres(9.5) Database. I have found stuff about replication from On-premise to On-premise. But How can we implement it for AWS RDS to On-premise?
I do this using Bucardo.
Check-out this: https://bucardo.org/Bucardo/
With Bucardo you can replicate RDS postgres instance to a slave postgres present somewhere, only configuring slave, so without the needs to configure RDS stuff.
Also you can do this with zero downtime.
Anyway I am not sure this will work using different versions of Postgresql. You should use same version if possible. I tested it with 9.4.x and it is working.
UPDATE
I can confirm that this is working also using different version of Postgres, for example I was able to replicate with these versions:
AWS RDS postgresql 9.4.x
On-premise postgresql 9.6.x
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts.General.FeatureSupport.LogicalReplication
Beginning with PostgreSQL version 9.4, PostgreSQL supports the
streaming of WAL changes using logical replication slots. Amazon RDS
supports logical replication for a PostgreSQL DB instance version
9.4.9 and higher and 9.5.4 and higher. Using logical replication, you can set up logical replication slots on your instance and stream
database changes through these slots to a client like pg_recvlogical.
Logical slots are created at the database level and support
replication connections to a single database.
mind possible problems eg https://dba.stackexchange.com/questions/173267/aws-rds-postgres-logical-replication