From: Alvaro Herrera Date: Mon, 26 Mar 2018 14:45:58 +0000 (-0300) Subject: Fix test impredictability X-Git-Tag: REL_11_BETA1~479 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=186b6df2e62251e5e1f3cae8a3257c7226f4188c;p=postgresql 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. --- 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;