summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-08-27 16:47:23 +0200
committerPeter Eisentraut <peter@eisentraut.org>2025-08-27 17:46:31 +0200
commit310d04169a41c20fa2e84ba6e40cffc10b8fa065 (patch)
treefb74ea523abc2949fe9b87073be92fbcd2a22dcf /src
parente36fa9319b1366ee0194e130a9a77c4af7ee1853 (diff)
Put back intra-grant-inplace.spec test coverage
Commit d31bbfb6590 lost some test coverage, because the situation being tested, a concurrent DROP, cannot happen anymore. Put the test coverage back with a bit of a trick, by deleting directly from the catalog 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
Diffstat (limited to 'src')
-rw-r--r--src/test/isolation/expected/intra-grant-inplace.out4
-rw-r--r--src/test/isolation/specs/intra-grant-inplace.spec2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/isolation/expected/intra-grant-inplace.out b/src/test/isolation/expected/intra-grant-inplace.out
index 1aa9da622da..23c34d0ca09 100644
--- a/src/test/isolation/expected/intra-grant-inplace.out
+++ b/src/test/isolation/expected/intra-grant-inplace.out
@@ -226,7 +226,7 @@ step revoke4: <... completed>
starting permutation: b1 drop1 b3 sfu3 revoke4 c1 r3
step b1: BEGIN;
step drop1:
- DROP TABLE intra_grant_inplace;
+ DELETE FROM pg_class WHERE relname = 'intra_grant_inplace';
step b3: BEGIN ISOLATION LEVEL READ COMMITTED;
step sfu3:
@@ -248,6 +248,6 @@ relhasindex
-----------
(0 rows)
-s4: WARNING: got: relation "intra_grant_inplace" does not exist
+s4: WARNING: got: cache lookup failed for relation REDACTED
step revoke4: <... completed>
step r3: ROLLBACK;
diff --git a/src/test/isolation/specs/intra-grant-inplace.spec b/src/test/isolation/specs/intra-grant-inplace.spec
index 9936d389359..e9c7848624c 100644
--- a/src/test/isolation/specs/intra-grant-inplace.spec
+++ b/src/test/isolation/specs/intra-grant-inplace.spec
@@ -20,7 +20,7 @@ step grant1 {
GRANT SELECT ON intra_grant_inplace TO PUBLIC;
}
step drop1 {
- DROP TABLE intra_grant_inplace;
+ DELETE FROM pg_class WHERE relname = 'intra_grant_inplace';
}
step c1 { COMMIT; }