From: Alexander Korotkov Date: Fri, 25 Oct 2024 10:07:07 +0000 (+0300) Subject: Fix concurrrently in typcache_rel_type_cache.sql X-Git-Tag: REL_18_BETA1~1625 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=aa1e898dea666629bb5314fd25445545b9eb7b27;p=postgresql.git 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 --- 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;