forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5f6b1eb
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 parenta9056cc commit5f6b1eb
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1180 | 1180 |
| |
1181 | 1181 |
| |
1182 | 1182 |
| |
1183 |
| - | |
1184 |
| - | |
1185 |
| - | |
1186 | 1183 |
| |
1187 | 1184 |
| |
1188 | 1185 |
| |
| |||
1194 | 1191 |
| |
1195 | 1192 |
| |
1196 | 1193 |
| |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
1197 | 1197 |
| |
1198 | 1198 |
| |
1199 | 1199 |
| |
|
0 commit comments
Comments
(0)