You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a hypertable request_logs configured with a 24 hour retention policy. The retention policy is being marked as running successfully, however no old data from the table is being removed. The table continues to grow day by day.
I checked and don't see any errors in the postgresql log files.
Could use additional guidance on where to look for information to troubleshoot this issue.
To Reproduce
Steps to reproduce the behavior:
Unknown at the moment.
Expected behavior
I am expecting to only keep 24 hours worth of data in my request_logs table.
Actual behavior
No old data is being removed
Screenshots request_logs table structure
\d+ request_logs;
Table "public.request_logs"
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description
-----------+--------------------------+-----------+----------+---------+---------+--------------+-------------
time | timestamp with time zone | | not null | | plain | |
referer | bigint | | | | plain | |
useragent | bigint | | | | plain | |
Indexes:
"request_logs_time_idx" btree ("time" DESC)
Triggers:
ts_insert_blocker BEFORE INSERT ON request_logs FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker()
Child tables: _timescaledb_internal._hyper_1_37_chunk,
_timescaledb_internal._hyper_1_38_chunk,
_timescaledb_internal._hyper_1_40_chunk
Access method: heap
This is the hypertable description retrieved by running select * from _timescaledb_catalog.hypertable;
If the bug reproduces on 2.4.2, reopen this issue. In this case, we will need a little more details on reproducing the issue. The minimal case that could be executed in psql would be perfect!
Also, please make sure that whoever is writing to request_logs doesn't do it with old timestamps, creating an impression that the job didn't clean up the table.
Relevant system information:
postgres --version
): 12\dx
inpsql
): 2.4.1Describe the bug
I have a hypertable
request_logs
configured with a 24 hour retention policy. The retention policy is being marked as running successfully, however no old data from the table is being removed. The table continues to grow day by day.I checked and don't see any errors in the postgresql log files.
Could use additional guidance on where to look for information to troubleshoot this issue.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I am expecting to only keep 24 hours worth of data in my
request_logs
table.Actual behavior
No old data is being removed
Screenshots
request_logs
table structureThis is the hypertable description retrieved by running
select * from _timescaledb_catalog.hypertable;
This is the retention_policy retrieved by running
SELECT * FROM timescaledb_information.job_stats;
.Additional context
The text was updated successfully, but these errors were encountered: