Skip to content

Commit

Permalink
Add GRANT statements to sdss_id_to_catalog view
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Nov 18, 2024
1 parent ef71712 commit ed921fe
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ def create_sdss_id_to_catalog_view(
for alias in aliases:
database.execute_sql(f"CREATE INDEX ON {view_name} ({alias});")

log.info("Setting permissions ...")
database.execute_sql(f"GRANT SELECT ON {view_name} TO sdss;")
database.execute_sql(f"GRANT SELECT ON {view_name} TO sdss_user;")

log.info("Running VACUUM ANALYZE ...")
database.execute_sql(f"VACUUM ANALYZE {view_name};")

Expand Down

0 comments on commit ed921fe

Please sign in to comment.