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:
parent
705ec05653
commit
997db123c0
|
@ -179,3 +179,9 @@ select verify(:next_i);
|
|||
t
|
||||
(1 row)
|
||||
|
||||
SELECT injection_points_detach('gin-finish-incomplete-split');
|
||||
injection_points_detach
|
||||
-------------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue