diff options
author | Chris Wilson <qris@users.noreply.github.com> | 2021-03-15 13:19:35 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2021-05-20 16:33:15 +0200 |
commit | af6263763705818089b3343dcbe6cfd01ed3a261 (patch) | |
tree | a7934d129169060cbf199e52e98a4c970246b2f4 | |
parent | 2ec5d0faced6b0b1844f2b0eb80e5a04b35e8257 (diff) | |
download | psycopg2-af6263763705818089b3343dcbe6cfd01ed3a261.tar.gz |
Add warning about send_feedback and cursor choice
-rw-r--r-- | doc/src/extras.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/src/extras.rst b/doc/src/extras.rst index eed049c..96f801b 100644 --- a/doc/src/extras.rst +++ b/doc/src/extras.rst @@ -445,7 +445,9 @@ The individual messages in the replication stream are represented by If the *reply* or *force* parameters are not set, this method will just update internal structures without sending the feedback message to the server. The library sends feedback message automatically - when *status_interval* timeout is reached. + when *status_interval* timeout is reached. For this to work, you must + call `send_feedback()` on the same Cursor that you called `start_replication()` + on (the one in `message.cursor`) or your feedback will be lost. .. versionchanged:: 2.8.3 added the *force* parameter. |