From 186b6df2e62251e5e1f3cae8a3257c7226f4188c Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 26 Mar 2018 11:45:58 -0300 Subject: [PATCH] Fix test impredictability Test 'triggers' fails when another one creates triggers concurrently at some precise time, because of a missing WHERE clause. Per buildfarm members snapper, desmoxytes. --- src/test/regress/expected/triggers.out | 1 + src/test/regress/sql/triggers.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/src/test/regress/expected/triggers.out b/src/test/regress/expected/triggers.out index f534d0db18..387e40d67d 100644 --- a/src/test/regress/expected/triggers.out +++ b/src/test/regress/expected/triggers.out @@ -2199,6 +2199,7 @@ alter table parted_trigger attach partition parted_trigger_3 for values from (20 select tgname, conname, t.tgrelid::regclass, t.tgconstrrelid::regclass, c.conrelid::regclass, c.confrelid::regclass from pg_trigger t join pg_constraint c on (t.tgconstraint = c.oid) + where tgname = 'parted_trigger' order by t.tgrelid::regclass::text; tgname | conname | tgrelid | tgconstrrelid | conrelid | confrelid ----------------+----------------+--------------------+-------------------+--------------------+----------- diff --git a/src/test/regress/sql/triggers.sql b/src/test/regress/sql/triggers.sql index 9d3e0ef707..c6f31dd8c8 100644 --- a/src/test/regress/sql/triggers.sql +++ b/src/test/regress/sql/triggers.sql @@ -1555,6 +1555,7 @@ alter table parted_trigger attach partition parted_trigger_3 for values from (20 select tgname, conname, t.tgrelid::regclass, t.tgconstrrelid::regclass, c.conrelid::regclass, c.confrelid::regclass from pg_trigger t join pg_constraint c on (t.tgconstraint = c.oid) + where tgname = 'parted_trigger' order by t.tgrelid::regclass::text; drop table parted_referenced, parted_trigger, unparted_trigger; -- 2.40.0