We have two different postgres databases one for STAGING and one for PROD disconnected from each other but they have same schema, same tables with same structures and same data. The requirement is Sometimes the STAGING database is used to create/update/delete entries. Periodically these changes in STAGING can be tested and brought (merged) into PROD database.
Since these CRUD changes in STAGING database can be huge, once in 15 days we are planning to merge the new changes in STAGING database into the PROD database.
I tried copying the WAL files from STAGING database and put them in PROD database WAL folder and restarting the service. But unfortunately nothing was merged as I could see only the PROD database with unchanged data.
My questions is, can WAL files from the two different databases help the merge?