File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 11Parsed test spec with 3 sessions
22
3- starting permutation: cachefill3 cir1 cic2 ddl3 read1
3+ starting permutation: cachefill3 cir1 cic2 ddl3
44step cachefill3: TABLE newly_indexed;
55c
66-
99step cir1: BEGIN; CREATE INDEX i1 ON newly_indexed (c); ROLLBACK;
1010step cic2: CREATE INDEX i2 ON newly_indexed (c);
1111step ddl3: ALTER TABLE newly_indexed ADD extra int;
12- step read1:
13- SELECT relhasindex FROM pg_class WHERE oid = 'newly_indexed'::regclass;
14-
15- relhasindex
16- -----------
17- f
18- (1 row)
19-
2012
2113starting permutation: cir1 cic2 ddl3 read1
2214step cir1: BEGIN; CREATE INDEX i1 ON newly_indexed (c); ROLLBACK;
Original file line number Diff line number Diff line change @@ -27,12 +27,14 @@ step cachefill3 { TABLE newly_indexed; }
2727step ddl3 { ALTER TABLE newly_indexed ADD extra int ; }
2828
2929
30+ # XXX shows an extant bug. Adding step read1 at the end would usually print
31+ # relhasindex=f (not wanted). This does not reach the unwanted behavior under
32+ # -DCATCACHE_FORCE_RELEASE and friends.
3033permutation
3134 cachefill3 # populates the pg_class row in the catcache
3235 cir1 # sets relhasindex=true; rollback discards cache inval
3336 cic2 # sees relhasindex=true, skips changing it (so no inval)
3437 ddl3 # cached row as the oldtup of an update, losing relhasindex
35- read1 # observe damage XXX is an extant bug
3638
3739# without cachefill3, no bug
3840permutation cir1 cic2 ddl3 read1
You can’t perform that action at this time.
0 commit comments