Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: get hypertable and continuous aggregation (materialized views) definition for existing ones #7501

Open
ecerichter opened this issue Nov 28, 2024 · 1 comment
Labels
feature-request Feature proposal

Comments

@ecerichter
Copy link

What problem does the new feature solve?

I've several hypertables, and not all of them have been documented.
In PostgreSQL, there are several internal tables that help to obtain the definition of objects, for example, to get the definition of a view, I just issue:

select pg_get_viewdef('viewname', true)

Would be a great adittion to timescaleDB if I can get a way to obtain the hypetable and aggregation (materialized) views definition as when created.

What does the feature do?

Enable DBD and DBA to get the definition for timescaledb objects, mainly hypertables and continuous aggregation (materialized views).

Implementation challenges

Would be necessary to store the creation command in the timescale catalog.

@ecerichter ecerichter added the feature-request Feature proposal label Nov 28, 2024
@salisbury-espinosa
Copy link

salisbury-espinosa commented Dec 12, 2024

Would be a great adittion to timescaleDB if I can get a way to obtain the hypetable and aggregation (materialized) views definition as when created.

select * from timescaledb_information.continuous_aggregates;
select * from timescaledb_information.hypertable

This? @ecerichter

Would be necessary to store the creation command in the timescale catalog.

view_definition in timescaledb_information.continuous_aggregates:

select view_definition from timescaledb_information.continuous_aggregates;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Feature proposal
Projects
None yet
Development

No branches or pull requests

2 participants