From 55615502ccbf10e8ccb9deade7bd87420718a2de Mon Sep 17 00:00:00 2001 From: hrodmn Date: Thu, 5 Dec 2024 14:58:27 -0600 Subject: [PATCH] set search_path to include pgstac for eoapi user --- lib/database/bootstrapper_runtime/handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/database/bootstrapper_runtime/handler.py b/lib/database/bootstrapper_runtime/handler.py index 0db9ae0..267331f 100644 --- a/lib/database/bootstrapper_runtime/handler.py +++ b/lib/database/bootstrapper_runtime/handler.py @@ -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 {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),