Skip to content

Commit

Permalink
feat: set search_path to include pgstac for eoapi user (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn authored Dec 10, 2024
1 parent 2e3d728 commit 0470dcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/database/bootstrapper_runtime/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def update_user_permissions(cursor, db_name: str, username: str) -> None:
"GRANT pgstac_read TO {username};"
"GRANT pgstac_ingest TO {username};"
"GRANT pgstac_admin TO {username};"
"ALTER USER {username} SET search_path TO pgstac, public;" # add pgstac to search_path by default
).format(
db_name=sql.Identifier(db_name),
username=sql.Identifier(username),
Expand Down

0 comments on commit 0470dcf

Please sign in to comment.