Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Promote Postgres standby while materialized view updates in primary

$
0
0

I have one primary Postgres server (serverA) and one standby Postgres server (serverB), both running Postgres 9.4 with Streaming Replication enabled.

Is it possible to update a materialized view on serverA, promote serverB to primary, and then once the materialized view is updated, promote serverA back to primary and have everything replicate correctly (the updated view to serverB, and any writes on serverB while it was primary back to serverA)?

(Also, just to note, both systems currently receive very minimal production traffic.)


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>