Skip to content

Commit

Permalink
Fix privileges for job_errors table in update script
Browse files Browse the repository at this point in the history
  • Loading branch information
konskov authored and svenklemm committed Dec 23, 2022
1 parent a8e181e commit d3cffdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions sql/updates/latest-dev.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GRANT SELECT ON _timescaledb_internal.job_errors to PUBLIC;
2 changes: 1 addition & 1 deletion sql/updates/post-update.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ INSERT INTO _timescaledb_internal.saved_privs
WHERE relkind IN ('r', 'v') AND nspname IN ('_timescaledb_catalog', '_timescaledb_config')
OR nspname = '_timescaledb_internal'
AND relname IN ('hypertable_chunk_local_size', 'compressed_chunk_stats',
'bgw_job_stat', 'bgw_policy_chunk_stats')
'bgw_job_stat', 'bgw_policy_chunk_stats', 'job_errors')
ON CONFLICT DO NOTHING;

-- The above is good enough for tables and views. However sequences need to
Expand Down

0 comments on commit d3cffdf

Please sign in to comment.