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.
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;
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)