admin管理员组文章数量:1429085
I have a continuous aggregate on a hypertable that has an integer based time. The integer value is not an epoch() but it is a monotonically increasing integer, producing a new value approximately every 15 secs. There are functions that can convert this integer to a timestampz and vice vera.
My question is on how I can add a compression policy to compress everything older than a year.
The examples on the documentation suggest an interval but this I cannot use.
I am using timescaledb 2.15.3
I have a continuous aggregate on a hypertable that has an integer based time. The integer value is not an epoch() but it is a monotonically increasing integer, producing a new value approximately every 15 secs. There are functions that can convert this integer to a timestampz and vice vera.
My question is on how I can add a compression policy to compress everything older than a year.
The examples on the documentation suggest an interval but this I cannot use.
I am using timescaledb 2.15.3
Share Improve this question asked Mar 16 at 17:57 user2465039user2465039 9671 gold badge13 silver badges29 bronze badges1 Answer
Reset to default 0I never tried it, but it seems if the set_integer_now_func will help to allow you to use the integer:
https://github/timescale/timescaledb/blob/d1d74dcc92892c72fe93ddab7002026d2aaecdd7/tsl/src/bgw_policy/compression_api.c#L120
本文标签: Add compression policy to timescaledb on continuous aggregate with integer timeStack Overflow
版权声明:本文标题:Add compression policy to timescaledb on continuous aggregate with integer time - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744590652a2614468.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论