forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb779d7d
committed
Fix skip-empty-xacts with sequences in test_decoding
Regression tests need to use skip-empty-xacts = false, because theremight be accidental concurrent activity (like autovacuum), particularlyon slow machines. The tests added by80901b3 failed to do that in acouple places, triggering occasional failures on buildfarm.Fixing the tests however uncovered a bug in the code, because sequencecallbacks did not handle skip-empty-xacts properly. For trasactionalincrements we need to check/update the xact_wrote_changes flag, and emitthe BEGIN if it's the first change in the transaction.Reported-by: Andres FreundDiscussion:https://postgr.es/m/20220212220413.b25amklo7t4xb7ni%40alap3.anarazel.de1 parentfaa189c commitb779d7d
File tree
3 files changed
+31
-11
lines changed- contrib/test_decoding
- expected
- sql
3 files changed
+31
-11
lines changedLines changed: 5 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
| 90 | + | |
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
| |||
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
239 |
| - | |
| 239 | + | |
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
| |||
245 | 245 |
| |
246 | 246 |
| |
247 | 247 |
| |
248 |
| - | |
249 |
| - | |
250 |
| - | |
| 248 | + | |
251 | 249 |
| |
252 | 250 |
| |
253 | 251 |
| |
| |||
259 | 257 |
| |
260 | 258 |
| |
261 | 259 |
| |
262 |
| - | |
| 260 | + | |
263 | 261 |
| |
264 | 262 |
| |
265 | 263 |
| |
| |||
308 | 306 |
| |
309 | 307 |
| |
310 | 308 |
| |
311 |
| - | |
| 309 | + | |
312 | 310 |
| |
313 | 311 |
| |
314 | 312 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
| 31 | + | |
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
| 90 | + | |
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
102 |
| - | |
| 102 | + | |
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
117 |
| - | |
| 117 | + | |
118 | 118 |
| |
119 | 119 |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
774 | 774 |
| |
775 | 775 |
| |
776 | 776 |
| |
| 777 | + | |
777 | 778 |
| |
778 | 779 |
| |
779 | 780 |
| |
780 | 781 |
| |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
781 | 792 |
| |
782 | 793 |
| |
783 | 794 |
| |
| |||
994 | 1005 |
| |
995 | 1006 |
| |
996 | 1007 |
| |
| 1008 | + | |
997 | 1009 |
| |
998 | 1010 |
| |
999 | 1011 |
| |
1000 | 1012 |
| |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1001 | 1023 |
| |
1002 | 1024 |
| |
1003 | 1025 |
| |
|
0 commit comments
Comments
(0)