Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Can't create continuous aggregate on ps_trace.span #1835

Description

@StarpTech

Describe the bug

Span table is growing very fast. How can I make use of continuous aggregate (realtime) to optimize aggregates as described in
https://docs.timescale.com/timescaledb/latest/how-to-guides/hyperfunctions/percentile-approx/approximate-percentile/ ?

This is not possible because ps_trace.span is a postgres view not a hypertable or another continuous aggregate.

Error:

Error occurred during SQL query execution

Reason:
SQL Error [0A000]: ERROR: invalid continuous aggregate query
  Hint: continuous aggregate needs to query hypertable or another continuous aggregate

With that limitation in mind, what's the way to optimize resource-intensive queries?

To Reproduce

Expected behavior
I expected that it is possible

Configuration (as applicable)
Using Timescaledb Cloud

Version

  • Promscale: Latest (0.17.0)
  • TimescaleDB: Cloud

Additional context
Support Case #: 00012349

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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