diff options
author | Alexander Korotkov | 2024-10-25 10:07:07 +0000 |
---|---|---|
committer | Alexander Korotkov | 2024-10-25 10:12:16 +0000 |
commit | aa1e898dea666629bb5314fd25445545b9eb7b27 (patch) | |
tree | c38430e10632b9fb98f184fb1b7d4f94795ed9cf | |
parent | b8a046081c43ce4a0a462812165f34b6026e60ef (diff) |
Fix concurrrently in typcache_rel_type_cache.sql
All injection points there must be local. Otherwise it affects parallel
tests.
Reported-by: Andres Freund
Discussion: https://postgr.es/m/b3ybc66l6lhmtzj2n7ypumz5yjz7njc46sddsqshdtstgj74ah%40qgtn6nzokj6a
-rw-r--r-- | src/test/modules/typcache/expected/typcache_rel_type_cache.out | 7 | ||||
-rw-r--r-- | src/test/modules/typcache/sql/typcache_rel_type_cache.sql | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/test/modules/typcache/expected/typcache_rel_type_cache.out b/src/test/modules/typcache/expected/typcache_rel_type_cache.out index b113e0bbd5d..a91bd72b9bd 100644 --- a/src/test/modules/typcache/expected/typcache_rel_type_cache.out +++ b/src/test/modules/typcache/expected/typcache_rel_type_cache.out @@ -8,6 +8,13 @@ -- successful type cache invalidation by relation oid. -- CREATE EXTENSION injection_points; +-- Make all injection points local to this process, for concurrency. +SELECT injection_points_set_local(); + injection_points_set_local +---------------------------- + +(1 row) + CREATE TABLE t (i int); SELECT injection_points_attach('typecache-before-rel-type-cache-insert', 'error'); injection_points_attach diff --git a/src/test/modules/typcache/sql/typcache_rel_type_cache.sql b/src/test/modules/typcache/sql/typcache_rel_type_cache.sql index 2c0a434d988..c1a3af509c0 100644 --- a/src/test/modules/typcache/sql/typcache_rel_type_cache.sql +++ b/src/test/modules/typcache/sql/typcache_rel_type_cache.sql @@ -10,6 +10,9 @@ CREATE EXTENSION injection_points; +-- Make all injection points local to this process, for concurrency. +SELECT injection_points_set_local(); + CREATE TABLE t (i int); SELECT injection_points_attach('typecache-before-rel-type-cache-insert', 'error'); SELECT '(1)'::t; |