Set missing search_path in the tests

On PG 15, public schema requires explicit GRANT, so lets avoid the conflict

helpful for #6085
pull/6157/head
Onder Kalaci 2022-08-10 18:04:10 +02:00
parent 6de8afec9f
commit 00ce7235cb
2 changed files with 6 additions and 0 deletions

View File

@ -612,6 +612,7 @@ REFRESH MATERIALIZED VIEW other_schema.mat_view_2;
REFRESH MATERIALIZED VIEW other_schema.mat_view;
REFRESH MATERIALIZED VIEW other_schema.mat_view_2;
\c - some_other_user
SET search_path TO 'other_schema';
-- test security definer funcs
CREATE FUNCTION security_definer_in_files()
RETURNS BOOLEAN AS $$
@ -633,6 +634,7 @@ SELECT security_definer_in_files();
(1 row)
\c - postgres
SET search_path TO 'other_schema';
SELECT security_definer_in_files();
security_definer_in_files
---------------------------------------------------------------------

View File

@ -289,6 +289,8 @@ REFRESH MATERIALIZED VIEW other_schema.mat_view_2;
\c - some_other_user
SET search_path TO 'other_schema';
-- test security definer funcs
CREATE FUNCTION security_definer_in_files()
RETURNS BOOLEAN AS $$
@ -308,6 +310,8 @@ SELECT security_definer_in_files();
\c - postgres
SET search_path TO 'other_schema';
SELECT security_definer_in_files();
CREATE FUNCTION security_definer_in_files_2()