From f8991b0794892766aeb4e68310c3e13bdf9106ab Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Wed, 20 May 2020 14:04:06 -0500 Subject: [PATCH] Fix broken link in schema structure --- schema_structure.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema_structure.rst b/schema_structure.rst index 8f64354f6..718291255 100644 --- a/schema_structure.rst +++ b/schema_structure.rst @@ -39,7 +39,7 @@ Security definer ---------------- A function is executed with the privileges of the user who calls it. This means that the user has to have all permissions to do the operations the procedure performs. -If the function accesses private database objects, your `API roles `_ won't be able to succesfully execute the function. +If the function accesses private database objects, your :ref:`API roles ` won't be able to succesfully execute the function. Another option is to define the function with the :code:`SECURITY DEFINER` option. Then only one permission check will take place, the permission to call the function, and the operations in the function will have the authority of the user who owns the function itself.