blob: 27bae55398aa113203632e337321438379547ead [file] [log] [blame]
-- @Description Tests the basic behavior of (lazy) vacuum when called from utility mode
--
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (a INT, b INT, c CHAR(128)) USING @amname@;
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, 100) AS i;
DELETE FROM foo WHERE a < 20;
SELECT COUNT(*) FROM foo;
0U: SELECT segno, state, case when tupcount = 0 then 'zero' when tupcount <= 5 then 'few' else 'many' end FROM gp_ao_or_aocs_seg('foo');
0U: VACUUM foo;
SELECT COUNT(*) FROM foo;
0U: SELECT segno, state, case when tupcount = 0 then 'zero' when tupcount <= 5 then 'few' else 'many' end FROM gp_ao_or_aocs_seg('foo');