test: prove that authenticator is not a superuser

This commit is contained in:
steve-chavez
2023-04-27 19:27:09 -05:00
committed by Steve Chavez
parent b0e395f495
commit 67936b343f
4 changed files with 29 additions and 0 deletions
+6
View File
@@ -3122,3 +3122,9 @@ BEGIN
END IF;
END
$do$;
CREATE FUNCTION test.is_superuser() RETURNS boolean
LANGUAGE sql
AS $$
select current_setting('is_superuser')::boolean;
$$;