aboutsummaryrefslogtreecommitdiff
path: root/doc/src/sgml/ref/create_function.sgml
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2017-03-20 22:33:26 -0400
committerBruce Momjian <bruce@momjian.us>2017-03-20 22:33:26 -0400
commit17fa3e834f288a2a8f0b3927d3f7f02451126686 (patch)
treea6803022e263d0e81c24cb4c16af27d43c073b81 /doc/src/sgml/ref/create_function.sgml
parent692ed0567d0a17013b8bc631ad6cab29470a944d (diff)
downloadpostgresql-17fa3e834f288a2a8f0b3927d3f7f02451126686.tar.gz
postgresql-17fa3e834f288a2a8f0b3927d3f7f02451126686.zip
doc: clarify that function "ownership" that controls permission
It used to say the creation user. Reported-by: Nathan Wagner
Diffstat (limited to 'doc/src/sgml/ref/create_function.sgml')
-rw-r--r--doc/src/sgml/ref/create_function.sgml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml
index e7057789d32..9d0d2f4beb2 100644
--- a/doc/src/sgml/ref/create_function.sgml
+++ b/doc/src/sgml/ref/create_function.sgml
@@ -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