1
votes

I've setup streaming replication and wonder if it's synchrounous.. if it's blocking.

Which implys when slave goes down, the synchronous rep will be blocked and there will be problems service client requests.

Or do I need not to worry about such a scenario?

1
That depends on your setting of synchronous_commit as documented in the manual - a_horse_with_no_name

1 Answers

0
votes

Yes, with synchronous replication a COMMIT will block until the required standby servers have reported that they have received the information.

That leads to reduced availability if you only have a single standby server. This is not a PostgreSQL shortcoming, but a fundamental necessity; read about the CAP theorem for more.

The way to deal with that is to have more than one standby server, so that life can go on if a standby server fails.