Skip to content

Commit aa1e898

Browse files
committed
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
1 parent b8a0460 commit aa1e898

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
-- successful type cache invalidation by relation oid.
99
--
1010
CREATE EXTENSION injection_points;
11+
-- Make all injection points local to this process, for concurrency.
12+
SELECT injection_points_set_local();
13+
injection_points_set_local
14+
----------------------------
15+
16+
(1 row)
17+
1118
CREATE TABLE t (i int);
1219
SELECT injection_points_attach('typecache-before-rel-type-cache-insert', 'error');
1320
injection_points_attach

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
CREATE EXTENSION injection_points;
1212

13+
-- Make all injection points local to this process, for concurrency.
14+
SELECT injection_points_set_local();
15+
1316
CREATE TABLE t (i int);
1417
SELECT injection_points_attach('typecache-before-rel-type-cache-insert', 'error');
1518
SELECT '(1)'::t;

0 commit comments

Comments
 (0)