Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbaf45ba

Browse files
peterenmisch
andcommitted
Put back intra-grant-inplace.spec test coverage
Commitd31bbfb lost some test coverage, because the situationbeing tested, a concurrent DROP, cannot happen anymore. Put the testcoverage back with a bit of a trick, by deleting directly from thecatalog table.Co-authored-by: Noah Misch <noah@leadboat.com>Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Discussion:https://www.postgresql.org/message-id/flat/bf72b82c-124d-4efa-a484-bb928e9494e4@eisentraut.org
1 parent118601a commitbaf45ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/test/isolation/expected/intra-grant-inplace.out‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ step revoke4: <... completed>
226226
starting permutation: b1 drop1 b3 sfu3 revoke4 c1 r3
227227
step b1: BEGIN;
228228
step drop1:
229-
DROP TABLEintra_grant_inplace;
229+
DELETE FROM pg_class WHERE relname = 'intra_grant_inplace';
230230

231231
step b3: BEGIN ISOLATION LEVEL READ COMMITTED;
232232
step sfu3:
@@ -248,6 +248,6 @@ relhasindex
248248
-----------
249249
(0 rows)
250250

251-
s4: WARNING: got:relation "intra_grant_inplace" does not exist
251+
s4: WARNING: got:cache lookup failed for relation REDACTED
252252
step revoke4: <... completed>
253253
step r3: ROLLBACK;

‎src/test/isolation/specs/intra-grant-inplace.spec‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ step grant1{
2020
GRANTSELECTONintra_grant_inplaceTOPUBLIC;
2121
}
2222
stepdrop1{
23-
DROPTABLEintra_grant_inplace;
23+
DELETEFROMpg_classWHERErelname='intra_grant_inplace';
2424
}
2525
stepc1{COMMIT;}
2626

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp