postgresql/src/test/regress/output
Tom Lane e5f455f59f Apply table and domain CHECK constraints in name order.
Previously, CHECK constraints of the same scope were checked in whatever
order they happened to be read from pg_constraint.  (Usually, but not
reliably, this would be creation order for domain constraints and reverse
creation order for table constraints, because of differing implementation
details.)  Nondeterministic results of this sort are problematic at least
for testing purposes, and in discussion it was agreed to be a violation of
the principle of least astonishment.  Therefore, borrow the principle
already established for triggers, and apply such checks in name order
(using strcmp() sort rules).  This lets users control the check order
if they have a mind to.

Domain CHECK constraints still follow the rule of checking lower nested
domains' constraints first; the name sort only applies to multiple
constraints attached to the same domain.

In passing, I failed to resist the temptation to wordsmith a bit in
create_domain.sgml.

Apply to HEAD only, since this could result in a behavioral change in
existing applications, and the potential regression test failures have
not actually been observed in our buildfarm.
2015-03-23 16:59:35 -04:00
..
constraints.source Apply table and domain CHECK constraints in name order. 2015-03-23 16:59:35 -04:00
copy.source Do jsonb regression test input in the conventional way. 2014-03-23 20:18:06 -04:00
create_function_1.source Make CREATE TYPE print warnings if a datatype's I/O functions are volatile. 2014-11-05 11:44:06 -05:00
create_function_2.source Allow SQL-language functions to reference parameters by name. 2012-02-04 19:23:49 -05:00
largeobject.source Adjust largeobject regression test to leave a couple of LOs behind. 2014-06-12 17:51:47 -04:00
largeobject_1.source Adjust largeobject regression test to leave a couple of LOs behind. 2014-06-12 17:51:47 -04:00
misc.source Add test cases for indexam operations not currently covered. 2014-11-19 19:47:43 +02:00
tablespace.source Use just one database connection in the "tablespace" test. 2014-11-12 07:33:17 -05:00