We periodically read the size of our hypertable using “SELECT hypertable_size(‘tablename’)”
Recently we ran into an error during the size query:
Npgsql.PostgresException (0x80004005): 42P01: relation "timescaledb_internal.hyper_117_27588_chunk" does not exist
We’re not sure if this is a problem internal to timescaledb or npgsql but it does seem like an internal problem. Has anyone seen this before? Is there a way to avoid or work around it? Knowing the table size is important, but recording data is more important to us.
It doesn’t happen all the time. The process had been running without issue for a couple weeks. There is no background task that would target a specific chunk. We do have a retention policy, but I’m not sure when it kicks in or if there is any evidence that it is doing anything in our logging. Chunk time interval is one day. We have enabled compression (30 day interval), other than that not many settings.