diff options
author | Tomas Vondra | 2017-10-08 18:16:47 +0000 |
---|---|---|
committer | Tomas Vondra | 2017-10-08 18:16:47 +0000 |
commit | 445372c5d3ad77f14b63c23eba4e37fecc631946 (patch) | |
tree | 80203149bf242b10fd32e3ae5921d70b00dbe65e | |
parent | ea34783b8c01f8396ae1b576a117f69d27e1e381 (diff) |
Add explicit VACUUM to stabilize plans in inherit tests
On stock PostgreSQL, CREATE INDEX also updates statistics in pg_class
(relpages and reltuples). But Postgres-XL does not do that, which may
result in plan differences when the test relies on this behavior.
This is the same issue as in cfb055553687c257dd1d1ed123356c892f48a804,
but affecting inherit regression tests. So fix it in the same way, by
doing an explicit vacuum on the tables.
-rw-r--r-- | src/test/regress/expected/inherit.out | 6 | ||||
-rw-r--r-- | src/test/regress/sql/inherit.sql | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/regress/expected/inherit.out b/src/test/regress/expected/inherit.out index 0f77b4378f..03b1432896 100644 --- a/src/test/regress/expected/inherit.out +++ b/src/test/regress/expected/inherit.out @@ -1514,9 +1514,9 @@ insert into patest2 create index patest0i on patest0(id); create index patest1i on patest1(id); create index patest2i on patest2(id); -analyze patest0; -analyze patest1; -analyze patest2; +vacuum analyze patest0; +vacuum analyze patest1; +vacuum analyze patest2; analyze int4_tbl; explain (costs off, num_nodes off, nodes off) select * from patest0 join (select f1 from int4_tbl where f1 = 0 limit 1) ss on id = f1; diff --git a/src/test/regress/sql/inherit.sql b/src/test/regress/sql/inherit.sql index e59b754507..18f3a7b2ee 100644 --- a/src/test/regress/sql/inherit.sql +++ b/src/test/regress/sql/inherit.sql @@ -515,9 +515,9 @@ insert into patest2 create index patest0i on patest0(id); create index patest1i on patest1(id); create index patest2i on patest2(id); -analyze patest0; -analyze patest1; -analyze patest2; +vacuum analyze patest0; +vacuum analyze patest1; +vacuum analyze patest2; analyze int4_tbl; explain (costs off, num_nodes off, nodes off) |