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