Skip to content

Commit

Permalink
Merge pull request #44 from aiven/revert_hastily_made_change
Browse files Browse the repository at this point in the history
Revert hastily made change & introduce correct fix
  • Loading branch information
alexole authored Nov 20, 2023
2 parents 404fde0 + 96be6aa commit 4acb009
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sql/aiven_extras.sql
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ CREATE FUNCTION aiven_extras.pg_create_subscription(
arg_copy_data BOOLEAN = TRUE
)
RETURNS VOID LANGUAGE plpgsql
SECURITY DEFINER
SET search_path = pg_catalog, aiven_extras
AS $$
BEGIN
Expand Down Expand Up @@ -545,12 +546,6 @@ CREATE FUNCTION aiven_extras.explain_statement(
RETURNS SETOF JSON
RETURNS NULL ON NULL INPUT
LANGUAGE plpgsql
-- This is needed because otherwise the executing user would need to have the
-- SELECT privilege on all tables that are part of the plan.
SECURITY DEFINER
-- We don't want to force users to change statements (e.g. schema-prefix all
-- tables in the query), so this intentionally does not specifiy a search_path.
-- Still, this will not help with users having custom search paths.
AS $$
DECLARE
curs REFCURSOR;
Expand Down

0 comments on commit 4acb009

Please sign in to comment.