Make GIN test using injection points repeatable

As written, the test would fail when run repeatedly because one of the
injection points attached was not detached.  This would not matter if
the test is rewritten to be concurrently safe, but let's be clean and
it is a good practice.

Oversight in 6a1ea02c49.

Discussion: https://postgr.es/m/ZfP7IDs9TvrKe49x@paquier.xyz
This commit is contained in:
Michael Paquier 2024-04-08 08:45:04 +09:00
parent 705ec05653
commit 997db123c0
2 changed files with 8 additions and 0 deletions

View File

@ -179,3 +179,9 @@ select verify(:next_i);
t
(1 row)
SELECT injection_points_detach('gin-finish-incomplete-split');
injection_points_detach
-------------------------
(1 row)

View File

@ -143,3 +143,5 @@ select insert_n(:next_i, 10) as next_i
\gset
-- Verify that a scan still works
select verify(:next_i);
SELECT injection_points_detach('gin-finish-incomplete-split');