psql: Make output of \dD more stable
authorPeter Eisentraut
Mon, 15 Apr 2024 07:28:48 +0000 (09:28 +0200)
committerPeter Eisentraut
Mon, 15 Apr 2024 07:28:48 +0000 (09:28 +0200)
commit6ff21c05302592874b8149421711e06043b954fe
tree692a303a132f860d0bf981e010480e19a4324098
parent9895b35cb88edc30b836661dbc26d7665716b5a0
psql: Make output of \dD more stable

\dD showed domain check constraints in arbitrary order, which can
cause regression test failures, which was exposed by commit
9895b35cb8.  To fix, order the constraints by conname, which matches
what psql does in other queries listing constraints.
src/bin/psql/describe.c
src/test/regress/expected/domain.out