Postgresql streaming replication forward writes -


i've managed set streaming replication postgresql (9.3 if maters). however, applications access secondary server (of course) unable make insert statements.

is there way have secondary server forward writes primary?

there no built-in support @ time (9.5 or older, @ least) transparently redirecting sessions read-replica writeable master. nor aware of attempting develop such support.

it's more complicated might expect redirection of write changes master read-replicas in way preserves acid transaction semantics (proper isolation, locking, etc) properly, apps don't have "know" , take special care.

the pgpool-ii project has (limited) support doing via proxy layer, , best bet @ point. aware there significant limitations , potential transaction consistency violations created proxy-based read/write split.

there couple of multi-master solutions, really shouldn't go there unless know need it. i'm active developer on one of them i'm aware of compromises , issues multi-master brings. don't go there unless really, have to.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -