|
| 1 | +Parsed test spec with 5 sessions |
| 2 | + |
| 3 | +starting permutation: b1 grant1 read2 addk2 c1 read2 |
| 4 | +step b1: BEGIN; |
| 5 | +step grant1: |
| 6 | + GRANT SELECT ON intra_grant_inplace TO PUBLIC; |
| 7 | + |
| 8 | +step read2: |
| 9 | + SELECT relhasindex FROM pg_class |
| 10 | + WHERE oid = 'intra_grant_inplace'::regclass; |
| 11 | + |
| 12 | +relhasindex |
| 13 | +----------- |
| 14 | +f |
| 15 | +(1 row) |
| 16 | + |
| 17 | +step addk2: ALTER TABLE intra_grant_inplace ADD PRIMARY KEY (c); |
| 18 | +step c1: COMMIT; |
| 19 | +step read2: |
| 20 | + SELECT relhasindex FROM pg_class |
| 21 | + WHERE oid = 'intra_grant_inplace'::regclass; |
| 22 | + |
| 23 | +relhasindex |
| 24 | +----------- |
| 25 | +f |
| 26 | +(1 row) |
| 27 | + |
| 28 | + |
| 29 | +starting permutation: keyshr5 addk2 |
| 30 | +step keyshr5: |
| 31 | + SELECT relhasindex FROM pg_class |
| 32 | + WHERE oid = 'intra_grant_inplace'::regclass FOR KEY SHARE; |
| 33 | + |
| 34 | +relhasindex |
| 35 | +----------- |
| 36 | +f |
| 37 | +(1 row) |
| 38 | + |
| 39 | +step addk2: ALTER TABLE intra_grant_inplace ADD PRIMARY KEY (c); |
| 40 | + |
| 41 | +starting permutation: keyshr5 b3 sfnku3 addk2 r3 |
| 42 | +step keyshr5: |
| 43 | + SELECT relhasindex FROM pg_class |
| 44 | + WHERE oid = 'intra_grant_inplace'::regclass FOR KEY SHARE; |
| 45 | + |
| 46 | +relhasindex |
| 47 | +----------- |
| 48 | +f |
| 49 | +(1 row) |
| 50 | + |
| 51 | +step b3: BEGIN ISOLATION LEVEL READ COMMITTED; |
| 52 | +step sfnku3: |
| 53 | + SELECT relhasindex FROM pg_class |
| 54 | + WHERE oid = 'intra_grant_inplace'::regclass FOR NO KEY UPDATE; |
| 55 | + |
| 56 | +relhasindex |
| 57 | +----------- |
| 58 | +f |
| 59 | +(1 row) |
| 60 | + |
| 61 | +step addk2: ALTER TABLE intra_grant_inplace ADD PRIMARY KEY (c); |
| 62 | +step r3: ROLLBACK; |
| 63 | + |
| 64 | +starting permutation: b2 sfnku2 addk2 c2 |
| 65 | +step b2: BEGIN; |
| 66 | +step sfnku2: |
| 67 | + SELECT relhasindex FROM pg_class |
| 68 | + WHERE oid = 'intra_grant_inplace'::regclass FOR NO KEY UPDATE; |
| 69 | + |
| 70 | +relhasindex |
| 71 | +----------- |
| 72 | +f |
| 73 | +(1 row) |
| 74 | + |
| 75 | +step addk2: ALTER TABLE intra_grant_inplace ADD PRIMARY KEY (c); |
| 76 | +step c2: COMMIT; |
| 77 | + |
| 78 | +starting permutation: keyshr5 b2 sfnku2 addk2 c2 |
| 79 | +step keyshr5: |
| 80 | + SELECT relhasindex FROM pg_class |
| 81 | + WHERE oid = 'intra_grant_inplace'::regclass FOR KEY SHARE; |
| 82 | + |
| 83 | +relhasindex |
| 84 | +----------- |
| 85 | +f |
| 86 | +(1 row) |
| 87 | + |
| 88 | +step b2: BEGIN; |
| 89 | +step sfnku2: |
| 90 | + SELECT relhasindex FROM pg_class |
| 91 | + WHERE oid = 'intra_grant_inplace'::regclass FOR NO KEY UPDATE; |
| 92 | + |
| 93 | +relhasindex |
| 94 | +----------- |
| 95 | +f |
| 96 | +(1 row) |
| 97 | + |
| 98 | +step addk2: ALTER TABLE intra_grant_inplace ADD PRIMARY KEY (c); |
| 99 | +step c2: COMMIT; |
| 100 | + |
| 101 | +starting permutation: b3 sfu3 b1 grant1 read2 addk2 r3 c1 read2 |
| 102 | +step b3: BEGIN ISOLATION LEVEL READ COMMITTED; |
| 103 | +step sfu3: |
| 104 | + SELECT relhasindex FROM pg_class |
| 105 | + WHERE oid = 'intra_grant_inplace'::regclass FOR UPDATE; |
| 106 | + |
| 107 | +relhasindex |
| 108 | +----------- |
| 109 | +f |
| 110 | +(1 row) |
| 111 | + |
| 112 | +step b1: BEGIN; |
| 113 | +step grant1: |
| 114 | + GRANT SELECT ON intra_grant_inplace TO PUBLIC; |
| 115 | + <waiting ...> |
| 116 | +step read2: |
| 117 | + SELECT relhasindex FROM pg_class |
| 118 | + WHERE oid = 'intra_grant_inplace'::regclass; |
| 119 | + |
| 120 | +relhasindex |
| 121 | +----------- |
| 122 | +f |
| 123 | +(1 row) |
| 124 | + |
| 125 | +step addk2: ALTER TABLE intra_grant_inplace ADD PRIMARY KEY (c); |
| 126 | +step r3: ROLLBACK; |
| 127 | +step grant1: <... completed> |
| 128 | +step c1: COMMIT; |
| 129 | +step read2: |
| 130 | + SELECT relhasindex FROM pg_class |
| 131 | + WHERE oid = 'intra_grant_inplace'::regclass; |
| 132 | + |
| 133 | +relhasindex |
| 134 | +----------- |
| 135 | +f |
| 136 | +(1 row) |
| 137 | + |
| 138 | + |
| 139 | +starting permutation: b2 sfnku2 b1 grant1 addk2 c2 c1 read2 |
| 140 | +step b2: BEGIN; |
| 141 | +step sfnku2: |
| 142 | + SELECT relhasindex FROM pg_class |
| 143 | + WHERE oid = 'intra_grant_inplace'::regclass FOR NO KEY UPDATE; |
| 144 | + |
| 145 | +relhasindex |
| 146 | +----------- |
| 147 | +f |
| 148 | +(1 row) |
| 149 | + |
| 150 | +step b1: BEGIN; |
| 151 | +step grant1: |
| 152 | + GRANT SELECT ON intra_grant_inplace TO PUBLIC; |
| 153 | + <waiting ...> |
| 154 | +step addk2: ALTER TABLE intra_grant_inplace ADD PRIMARY KEY (c); |
| 155 | +step c2: COMMIT; |
| 156 | +step grant1: <... completed> |
| 157 | +step c1: COMMIT; |
| 158 | +step read2: |
| 159 | + SELECT relhasindex FROM pg_class |
| 160 | + WHERE oid = 'intra_grant_inplace'::regclass; |
| 161 | + |
| 162 | +relhasindex |
| 163 | +----------- |
| 164 | +f |
| 165 | +(1 row) |
| 166 | + |
| 167 | + |
| 168 | +starting permutation: b1 grant1 b3 sfu3 revoke4 c1 r3 |
| 169 | +step b1: BEGIN; |
| 170 | +step grant1: |
| 171 | + GRANT SELECT ON intra_grant_inplace TO PUBLIC; |
| 172 | + |
| 173 | +step b3: BEGIN ISOLATION LEVEL READ COMMITTED; |
| 174 | +step sfu3: |
| 175 | + SELECT relhasindex FROM pg_class |
| 176 | + WHERE oid = 'intra_grant_inplace'::regclass FOR UPDATE; |
| 177 | + <waiting ...> |
| 178 | +step revoke4: |
| 179 | + DO $$ |
| 180 | + BEGIN |
| 181 | + REVOKE SELECT ON intra_grant_inplace FROM PUBLIC; |
| 182 | + EXCEPTION WHEN others THEN |
| 183 | + RAISE WARNING 'got: %', regexp_replace(sqlerrm, '[0-9]+', 'REDACTED'); |
| 184 | + END |
| 185 | + $$; |
| 186 | + <waiting ...> |
| 187 | +step c1: COMMIT; |
| 188 | +step sfu3: <... completed> |
| 189 | +relhasindex |
| 190 | +----------- |
| 191 | +f |
| 192 | +(1 row) |
| 193 | + |
| 194 | +s4: WARNING: got: tuple concurrently updated |
| 195 | +step revoke4: <... completed> |
| 196 | +step r3: ROLLBACK; |
| 197 | + |
| 198 | +starting permutation: b1 drop1 b3 sfu3 revoke4 c1 r3 |
| 199 | +step b1: BEGIN; |
| 200 | +step drop1: |
| 201 | + DROP TABLE intra_grant_inplace; |
| 202 | + |
| 203 | +step b3: BEGIN ISOLATION LEVEL READ COMMITTED; |
| 204 | +step sfu3: |
| 205 | + SELECT relhasindex FROM pg_class |
| 206 | + WHERE oid = 'intra_grant_inplace'::regclass FOR UPDATE; |
| 207 | + <waiting ...> |
| 208 | +step revoke4: |
| 209 | + DO $$ |
| 210 | + BEGIN |
| 211 | + REVOKE SELECT ON intra_grant_inplace FROM PUBLIC; |
| 212 | + EXCEPTION WHEN others THEN |
| 213 | + RAISE WARNING 'got: %', regexp_replace(sqlerrm, '[0-9]+', 'REDACTED'); |
| 214 | + END |
| 215 | + $$; |
| 216 | + <waiting ...> |
| 217 | +step c1: COMMIT; |
| 218 | +step sfu3: <... completed> |
| 219 | +relhasindex |
| 220 | +----------- |
| 221 | +(0 rows) |
| 222 | + |
| 223 | +s4: WARNING: got: tuple concurrently deleted |
| 224 | +step revoke4: <... completed> |
| 225 | +step r3: ROLLBACK; |
0 commit comments