|
|
|
|
|
by hgimenez
4977 days ago
|
|
A little-known feature of Postgres' streaming replication is Synchronous Replication or 2-safe replication, available from version 9.1 onward. It allows you to specify that a given commit must be durable on a standby server prior to the server returning to the client. You can turn this on cluster wide, or just for single transactions using session variables. In your example, you can specify that this update must be synchronously replicated, and as such the consequent request will show the user the updated data. Read more about it here: http://www.postgresql.org/docs/9.1/static/warm-standby.html#... |
|