]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve stability of identity.sql regression test.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Oct 2020 00:45:06 +0000 (20:45 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Oct 2020 00:45:36 +0000 (20:45 -0400)
commit5856ed1099d9288a7cee20cff9f95831a96add1c
tree2e2b26aeb39df0ffb1d7629845a605df56e95d78
parent62f6f11d9e2c53ce5b130c8cafe9e12870f1c81d
Improve stability of identity.sql regression test.

I noticed while trying to run the regression tests under a low
geqo_threshold that one query on information_schema.columns had
unstable (as in, variable from one run to the next) output order.
This is pretty unsurprising given the complexity of the underlying
plan.  Interestingly, of this test's three nigh-identical queries on
information_schema.columns, the other two already had ORDER BY clauses
guaranteeing stable output.  Let's make this one look the same.

Back-patch to v10 where this test was added.  We've not heard field
reports of the test failing, but this experience shows that it can
happen when testing under even slightly unusual conditions.
src/test/regress/expected/identity.out
src/test/regress/sql/identity.sql