diff options
| author | Oleksandr Shulgin <oleksandr.shulgin@zalando.de> | 2015-10-01 19:28:00 +0200 |
|---|---|---|
| committer | Oleksandr Shulgin <oleksandr.shulgin@zalando.de> | 2015-10-01 19:33:27 +0200 |
| commit | 0233620c26c5df32b1ad8d5b0363a5fd75be3e91 (patch) | |
| tree | f655ad5569fbfd63d585305c50e69c27d5e86520 /lib/extras.py | |
| parent | cac83da5dbb77e142040be66b7d0e85e3e10f9c3 (diff) | |
| download | psycopg2-0233620c26c5df32b1ad8d5b0363a5fd75be3e91.tar.gz | |
Rework replication connection/cursor classes
Diffstat (limited to 'lib/extras.py')
| -rw-r--r-- | lib/extras.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/extras.py b/lib/extras.py index 998c792..c05536a 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -544,9 +544,9 @@ class ReplicationCursor(_cursor): command = "DROP_REPLICATION_SLOT %s" % self.connection.quote_ident(slot_name) self.execute(command) - def start_replication(self, slot_name=None, writer=None, slot_type=None, start_lsn=0, - timeline=0, keepalive_interval=10, options=None): - """Start and consume replication stream.""" + def start_replication(self, slot_name=None, slot_type=None, start_lsn=0, + timeline=0, options=None): + """Start replication stream.""" command = "START_REPLICATION " @@ -594,8 +594,7 @@ class ReplicationCursor(_cursor): command += "%s %s" % (self.connection.quote_ident(k), _A(str(v))) command += ")" - return self.start_replication_expert(command, writer=writer, - keepalive_interval=keepalive_interval) + return self.start_replication_expert(command) def send_feedback_message(self, written_lsn=0, sync_lsn=0, apply_lsn=0, reply_requested=False): return self.send_replication_feedback(written_lsn, sync_lsn, apply_lsn, reply_requested) |
