Improve test coverage for functional dependencies
authorTomas Vondra <tomas.vondra@postgresql.org>
Sat, 14 Mar 2020 22:02:55 +0000 (23:02 +0100)
committerTomas Vondra <tomas.vondra@postgresql.org>
Sat, 14 Mar 2020 22:06:23 +0000 (23:06 +0100)
commitf9696782c70168e575c0f2d17a1cfe71847fef3d
tree933dd0cdfd8a186e5175b13fb82b7c715ccab83e
parent87c9c2571c8146f1594830072253ba39e62ccbc8
Improve test coverage for functional dependencies

The regression tests for functional dependencies were only using clauses
of the form (Var op Const), i.e. with Var on the left side. This adds
a couple of queries with Var on the right, to test other code paths.

It also prints one of the functional dependencies, to test the data type
output function. The functional dependencies are "perfect" with degree
of 1.0 so this should be stable.

Discussion: https://www.postgresql.org/message-id/flat/20200113230008.g67iyk4cs3xbnjju@development
Author: Tomas Vondra
src/test/regress/expected/stats_ext.out
src/test/regress/sql/stats_ext.sql