doc: clarify that function "ownership" that controls permission
authorBruce Momjian <bruce@momjian.us>
Tue, 21 Mar 2017 02:33:26 +0000 (22:33 -0400)
committerBruce Momjian <bruce@momjian.us>
Tue, 21 Mar 2017 02:33:26 +0000 (22:33 -0400)
It used to say the creation user.

Reported-by: Nathan Wagner
doc/src/sgml/ref/create_function.sgml

index e7057789d32c76df76ea0c0f67d39370d32d430a..9d0d2f4beb2d5e26b05a8a331a6896fdf2d04c41 100644 (file)
@@ -401,7 +401,7 @@ CREATE [ OR REPLACE ] FUNCTION
       is to be executed with the privileges of the user that calls it.
       That is the default.  <literal>SECURITY DEFINER</literal>
       specifies that the function is to be executed with the
-      privileges of the user that created it.
+      privileges of the user that owns it.
      </para>
 
      <para>
@@ -747,7 +747,7 @@ SELECT * FROM dup(42);
 
    <para>
     Because a <literal>SECURITY DEFINER</literal> function is executed
-    with the privileges of the user that created it, care is needed to
+    with the privileges of the user that owns it, care is needed to
     ensure that the function cannot be misused.  For security,
     <xref linkend="guc-search-path"> should be set to exclude any schemas
     writable by untrusted users.  This prevents