Reputation: 1
We have set a retention policy of 72 hours on a table which has column with definition as timestamp without time zone.
When we check after 72 hours, data was not deleted from table.
Update 26 Aug 2021
Added sample data for analysis
Upvotes: 0
Views: 800
Reputation: 1412
The retention policy runs on a schedule in the background jobs. You can also check the background jobs and see the details:
SELECT * FROM timescaledb_information.jobs where application_name like 'Compression%';
Then, with the job_id
it's possible to check the job_stats:
SELECT job_id, total_runs, total_failures, total_successes
FROM timescaledb_information.job_stats
WHERE job_id IN (
SELECT job_id
FROM timescaledb_information.jobs
WHERE application_name like 'Compression%');
Upvotes: 2