I have observed that currently incase there is a network break between master and standby, walsender process gets terminated immediately, however I could see that there is replication_timeout configuration parameter, walsender checks for replication_timeout and exits after that timeout. Shouldn't for walreceiver, there be a mechanism so that it can detect n/w failure sooner? Note - Earlier I had sent this on Hackers list also, I just wanted to know that is it the behavior as defined by PostgreSQL or is it a bug or a new feature in itself. In case it is not clear, I will raise a bug.
|