forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf672df5

Amit Kapila
Remove the unnecessary PrepareWrite in pgoutput.
This issue exists from the inception of this code (PG-10) but got exposedby the recent commitce0fdbf where we are using origins in tablesyncworkers. The problem was that we were sometimes sending the prepare_write('w') message but then the actual message was not being sent and on thesubscriber side, we always expect a message after prepare_write messagewhich led to this bug.I refrained from backpatching this because there is no way in the corecode to hit this prior to commitce0fdbf and we haven't received anycomplaints so far.Reported-by: Erik RijkersAuthor: Amit Kapila and Vignesh CTested-by: Erik RijkersDiscussion:https://postgr.es/m/1295168140.139428.1613133237154@webmailclassic.xs4all.nl1 parent8001cb7 commitf672df5
File tree
2 files changed
+80
-8
lines changed- src
- backend/replication/pgoutput
- test/subscription/t
2 files changed
+80
-8
lines changedLines changed: 11 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
345 |
| - | |
346 |
| - | |
347 |
| - | |
348 |
| - | |
349 | 345 |
| |
350 | 346 |
| |
351 | 347 |
| |
| |||
357 | 353 |
| |
358 | 354 |
| |
359 | 355 |
| |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
360 | 360 |
| |
| 361 | + | |
| 362 | + | |
361 | 363 |
| |
362 | 364 |
| |
363 | 365 |
| |
| |||
780 | 782 |
| |
781 | 783 |
| |
782 | 784 |
| |
783 |
| - | |
784 |
| - | |
785 |
| - | |
786 |
| - | |
787 | 785 |
| |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
788 | 790 |
| |
| 791 | + | |
789 | 792 |
| |
790 | 793 |
| |
791 | 794 |
| |
|
Lines changed: 69 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + |
0 commit comments
Comments
(0)