Cloudberry Database version
No response
What happened
SET gp_create_table_random_default_distribution=off;
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a INT, b INT, c CHAR(128)) WITH (appendonly=true) DISTRIBUTED BY (a);
CREATE INDEX foo_index ON foo(b);
INSERT INTO foo SELECT i as a, 1 as b, 'hello world' as c FROM generate_series(1, 10) AS i;
SET optimizer=off;
VACUUM foo;
DELETE FROM foo WHERE a < 4;
SELECT relname, reltuples FROM pg_class WHERE relname = 'foo_index';
the result for the query is
relname | reltuples
-----------+-----------
foo_index | 0
(1 row)
It seems wrong.
What you think should happen instead
The result of reltuples probably shouldn't be 0
How to reproduce
rerun the query.
Operating System
centos7
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Cloudberry Database version
No response
What happened
the result for the query is
It seems wrong.
What you think should happen instead
The result of
reltuplesprobably shouldn't be 0How to reproduce
rerun the query.
Operating System
centos7
Anything else
No response
Are you willing to submit PR?
Code of Conduct