Skip to content

Allow database owner to configure hypertables and policies#9668

Open
svenklemm wants to merge 1 commit intomainfrom
sven/db_owner
Open

Allow database owner to configure hypertables and policies#9668
svenklemm wants to merge 1 commit intomainfrom
sven/db_owner

Conversation

@svenklemm
Copy link
Copy Markdown
Member

The database owner can now run TimescaleDB configuration commands.
Until now only the table or job owner was allowed.

What the database owner can now do:

  • Hypertables: set_chunk_time_interval, add_dimension and the
    other dimension setters, add and remove a compression,
    retention, or reorder policy.
  • Continuous aggregates: add and remove the refresh policy.
  • Jobs: alter_job, run_job, delete_job.

What still needs the table owner:
ALTER TABLE, ALTER MATERIALIZED VIEW, REINDEX, and CREATE INDEX
on hypertables or continuous aggregates. PostgreSQL checks the
table owner before TimescaleDB sees the command, so the database
owner is rejected upfront.

The database owner can now run TimescaleDB configuration commands.
Until now only the table or job owner was allowed.

What the database owner can now do:
  - Hypertables: set_chunk_time_interval, add_dimension and the
    other dimension setters, add and remove a compression,
    retention, or reorder policy.
  - Continuous aggregates: add and remove the refresh policy.
  - Jobs: alter_job, run_job, delete_job.

What still needs the table owner:
  ALTER TABLE, ALTER MATERIALIZED VIEW, REINDEX, and CREATE INDEX
  on hypertables or continuous aggregates. PostgreSQL checks the
  table owner before TimescaleDB sees the command, so the database
  owner is rejected upfront.
@svenklemm svenklemm requested a review from a team April 28, 2026 07:18
@github-actions
Copy link
Copy Markdown

@dbeck, @Poroma-Banerjee: please review this pull request.

Powered by pull-review

@svenklemm svenklemm added this to the v2.27.0 milestone Apr 28, 2026
@svenklemm svenklemm requested a review from RobAtticus April 28, 2026 07:19
@RobAtticus
Copy link
Copy Markdown
Member

Should the database owner also have visibility into the timescaledb_information.job_history view? I think right now it only shows jobs owned by the user (or all jobs for superuser)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants