]> granicus.if.org Git - postgresql/commit
Convert pre-existing stats_ext tests to new style
authorTomas Vondra <tomas.vondra@postgresql.org>
Mon, 15 Apr 2019 22:02:22 +0000 (00:02 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Mon, 15 Apr 2019 22:02:22 +0000 (00:02 +0200)
commitdbb984128ebf6b4bd6f12b4579ee9103ef1ca749
tree7b60386d4c59612665c877d1ea788601ec143f87
parent3824ca30d162611fdaade403d3aec449fecd0924
Convert pre-existing stats_ext tests to new style

The regression tests added in commit 7300a69950 test cardinality
estimates using a function that extracts the interesting pieces
from the EXPLAIN output, instead of testing the whole plan. That
seems both easier to understand and less fragile, so this applies
the same approach to pre-existing tests of ndistinct coefficients
and functional dependencies.

Discussion: https://postgr.es/m/dfdac334-9cf2-2597-fb27-f0fb3753f435@2ndquadrant.com
src/test/regress/expected/stats_ext.out
src/test/regress/sql/stats_ext.sql