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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -