Smart replication feedback #913
This commit makes psycopg2 responsible for sending the status update (feedback) messages to the server regardless of whether a synchronous or asynchronous connection is used.
Feedback is sent every status_interval (default value is 10) seconds, which could be configured by passing a corresponding parameter to the
The default behavior of the
The new approach has certain advantages:
Reporting of the wal_end received from keepalive messages is very important. Not doing so casing:
The new way of sending status update (feedback) messages is inspired by reading the source code of the
This implementation is only extending the existing API and therefore should not break any of the existing code.