我的timescaledb有一个time_bucket_gapfill问题。设置初始值时,我想查询这一天之后7天的数据,但是timescaledb总是从星期一开始计数。如何自定义7天的时间范围?
这是我的代码
SELECT
time_bucket_gapfill('7 day', time,
start =>'2016-01-02',finish => '2016-12-31') AS "day",
locf(sum(pub_flg)) as pub_flg
FROM public.tb_lp_media_pub
where media_id=3236
GROUP BY "day"
ORDER BY "day" asc;