forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit41d5f8a
committed
Be less aggressive in asking for feedback of logical walsender clients.
When doing logical decoding using START_LOGICAL_REPLICATION in awalsender process the walsender sometimes was sending out keepalivemessages too frequently. Asking for feedback every time.WalSndWaitForWal() sends out keepalive messages when it's waiting fornew WAL to be generated locally when it sees that the remote sidehasn't yet flushed WAL up to the local position. That generally isgood but causes problems if the remote side only writes but doesn'tflush changes yet. So check for both remote write and flush position.Additionally we've asked for feedback to the keepalive message whichisn't warranted when waiting for WAL in contrast to preventingtimeouts because of wal_sender_timeout.Complaint and patch by Steve Singer.1 parent51222a1 commit41d5f8a
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1203 | 1203 |
| |
1204 | 1204 |
| |
1205 | 1205 |
| |
1206 |
| - | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
1207 | 1209 |
| |
1208 |
| - | |
| 1210 | + | |
1209 | 1211 |
| |
1210 | 1212 |
| |
1211 | 1213 |
| |
|
0 commit comments
Comments
(0)