Skip to content

With Timescale 0.20.*, aggregate refresh policies are no longer recognized or dumped #119

@exterm

Description

@exterm

Since we've upgraded to timescale 0.20.2, our schema dumps no longer contain the refresh policies for our aggregates.

Also, Timescaledb::ContinuousAggregates.all.map { |a| a.jobs.refresh_continuous_aggregate } just returns a bunch of empty lists.

The query spawned by that is

SELECT "timescaledb_information"."jobs".* FROM "timescaledb_information"."jobs" WHERE "timescaledb_information"."jobs"."hypertable_name" = '_materialized_hypertable_8' AND "timescaledb_information"."jobs"."proc_name" = 'policy_refresh_continuous_aggregate';

However, if I instead query

SELECT "timescaledb_information"."jobs".* FROM "timescaledb_information"."jobs" WHERE proc_name = 'policy_refresh_continuous_aggregate';

I do get the jobs. The hypertable_name column contains the exact name of the aggregate though, not _materialized_hypertable_8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions