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
This commit is contained in:
Alexander Korotkov 2024-10-25 13:07:07 +03:00
parent b8a046081c
commit aa1e898dea
2 changed files with 10 additions and 0 deletions

View 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

View 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;