From 417ac9c1eeebc5dd8186a9089055b8af43b2450e Mon Sep 17 00:00:00 2001 From: Álvaro Herrera Date: Tue, 25 Nov 2025 18:20:06 +0100 Subject: Improve test case stability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Given unlucky timing, some of the new tests added by commit bc32a12e0db2 can fail spuriously. We haven't seen such failures yet in buildfarm, but allegedly we can prevent them with this tweak. While at it, remove an unused injection point I (Álvaro) added. Author: Mihail Nikalayeu Discussion: https://postgr.es/m/CADzfLwUc=jtSUEaQCtyt8zTeOJ-gHZ8=w_KJsVjDOYSLqaY9Lg@mail.gmail.com Discussion: https://postgr.es/m/CADzfLwV5oQq-Vg_VmG_o4SdL6yHjDoNO4T4pMtgJLzYGmYf74g@mail.gmail.com --- src/backend/executor/execIndexing.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/backend/executor/execIndexing.c') diff --git a/src/backend/executor/execIndexing.c b/src/backend/executor/execIndexing.c index d1cbab58799..dd323c9b9fd 100644 --- a/src/backend/executor/execIndexing.c +++ b/src/backend/executor/execIndexing.c @@ -945,9 +945,7 @@ retry: ExecDropSingleTupleTableSlot(existing_slot); #ifdef USE_INJECTION_POINTS - if (conflict) - INJECTION_POINT("check-exclusion-or-unique-constraint-conflict", NULL); - else + if (!conflict) INJECTION_POINT("check-exclusion-or-unique-constraint-no-conflict", NULL); #endif -- cgit v1.2.3