Fix privileges for job_errors table in update script

This commit is contained in:
Konstantina Skovola 2022-12-23 12:38:59 +02:00 committed by Konstantina Skovola
parent cdf8676689
commit 0a3615fc70
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
GRANT SELECT ON _timescaledb_internal.job_errors to PUBLIC;

View File

@ -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