forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita49927f
committed
pg_logicalinspect: Stabilize isolation tests.
The previous isolation tests did not account for the possibility thatthe background writer or the checkpointer could write a RUNNING_XACTSrecord, which could cause logical decoding to produce more logicalsnapshots than expected.This commit modifies the isolation tests to verify that at least onelogical snapshot contains the expected number of committed or ongoingcatalog-change transactions.Per buildfarm member skink.Reported-by: Andres Freund <andres@anarazel.de>Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>Discussion:https://postgr.es/m/5qbxud4pvnvmtuoi7weiizm5hmumxaeohx4vztfhrwlfhyz6rj@buh4435mllwo1 parent8b1b342 commita49927f
File tree
2 files changed
+30
-38
lines changed- contrib/pg_logicalinspect
- expected
- specs
2 files changed
+30
-38
lines changedLines changed: 12 additions & 32 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| 13 | + | |
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
46 | 25 |
| |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
51 | 30 |
| |
52 | 31 |
| |
| 32 | + |
Lines changed: 18 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 |
| - | |
| 2 | + | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
| 15 | + | |
14 | 16 |
| |
15 | 17 |
| |
16 | 18 |
| |
| |||
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
24 |
| - | |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| 31 | + | |
30 | 32 |
| |
31 |
| - | |
32 |
| - | |
| 33 | + | |
| 34 | + | |
33 | 35 |
| |
34 |
| - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + |
0 commit comments
Comments
(0)