mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 11:03:36 +08:00
Implement vacuum by internally calling vacuum on both the compressed and non-compressed relations. Since hyperstore indexes are defined on the non-compressed relation, vacuuming the compressed relation won't clean up compressed tuples from those indexes. To handle this, a proxy index is defined on each compressed relation in order to direct index vacuum calls to the corresponding indexes on the hyperstore relation. The proxy index also translates the encoded TIDs stored in the index to proper TIDs for the compressed relation.