forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcb6d7f9
committed
Fix timestamp of sent message for write context in logical decoding
When sending data for logical decoding using the streaming replicationprotocol via a WAL sender, the timestamp of the sent write message isallocated at the beginning of the message when preparing for the write,and actually computed when the write message is ready to be sent.The timestamp was getting computed after sending the message. Thisimpacts anything using logical decoding, causing for example logicalreplication to report mostly NULL for last_msg_send_time inpg_stat_subscription.This commit makes sure that the timestamp is computed before sending themessage. This is wrong since5a991ef, so backpatch down to 9.4.Author: Jeff JanesDiscussion:https://postgr.es/m/CAMkU=1z=WMn8jt7iEdC5sYNaPgAgOASb_OW5JYv-vMdYaJSL-w@mail.gmail.comBackpatch-through: 9.41 parentbe99485 commitcb6d7f9
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1161 | 1161 |
| |
1162 | 1162 |
| |
1163 | 1163 |
| |
1164 |
| - | |
1165 |
| - | |
1166 |
| - | |
1167 | 1164 |
| |
1168 | 1165 |
| |
1169 | 1166 |
| |
| |||
1175 | 1172 |
| |
1176 | 1173 |
| |
1177 | 1174 |
| |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
1178 | 1178 |
| |
1179 | 1179 |
| |
1180 | 1180 |
| |
|
0 commit comments
Comments
(0)