Fix concurrrently in typcache_rel_type_cache.sql
authorAlexander Korotkov <[email protected]>
Fri, 25 Oct 2024 10:07:07 +0000 (13:07 +0300)
committerAlexander Korotkov <[email protected]>
Fri, 25 Oct 2024 10:12:16 +0000 (13:12 +0300)
All injection points there must be local.  Otherwise it affects parallel
tests.

Reported-by: Andres Freund
Discussion: https://postgr.es/m/b3ybc66l6lhmtzj2n7ypumz5yjz7njc46sddsqshdtstgj74ah%40qgtn6nzokj6a

src/test/modules/typcache/expected/typcache_rel_type_cache.out
src/test/modules/typcache/sql/typcache_rel_type_cache.sql

index b113e0bbd5d929d85b3b16c4f67e4e5721279f4c..a91bd72b9bd4d16249ceba0f9cef13781c5651a5 100644 (file)
@@ -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 
index 2c0a434d988a02e846299af79552163c72ec8114..c1a3af509c01803722e751d0ea162f81fda5f153 100644 (file)
@@ -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;