mirror of https://github.com/citusdata/citus.git
Set missing search_path in the tests
On PG 15, public schema requires explicit GRANT, so lets avoid the conflict helpful for #6085pull/6157/head
parent
6de8afec9f
commit
00ce7235cb
|
@ -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
|
||||
---------------------------------------------------------------------
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue