Skip to content

Commit 1e34bd8

Browse files
committed
Added pgstac db permissions to search_path by default.
1 parent febf744 commit 1e34bd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

helm-chart/eoapi/initdb-data/pgstac-setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"GRANT pgstac_read TO {username};"
3939
"GRANT pgstac_ingest TO {username};"
4040
"GRANT pgstac_admin TO {username};"
41+
"ALTER USER {username} SET search_path TO pgstac, public;" # add pgstac to search_path by default
4142
).format(
4243
db_name=sql.Identifier(os.environ["POSTGRES_DBNAME"]),
4344
username=sql.Identifier(os.environ["POSTGRES_USER"]),

0 commit comments

Comments
 (0)