Skip to content

Commit 2bde07c

Browse files
committed
Clarify the meaning of "trusted language" in the documentation.
1 parent 63f591e commit 2bde07c

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

doc/src/sgml/ref/create_language.sgml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/create_language.sgml,v 1.50 2010/04/03 07:22:58 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_language.sgml,v 1.51 2010/05/30 02:23:09 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -104,11 +104,10 @@ CREATE [ OR REPLACE ] [ TRUSTED ] [ PROCEDURAL ] LANGUAGE <replaceable class="pa
104104

105105
<listitem>
106106
<para>
107-
<literal>TRUSTED</literal> specifies that
108-
the language is safe, that is, it does not offer an
109-
unprivileged user any functionality to bypass access
110-
restrictions. If this key word is omitted when registering the
111-
language, only users with the
107+
<literal>TRUSTED</literal> specifies that the language does
108+
not grant access to data that the user would not otherwise
109+
have. If this key word is omitted
110+
when registering the language, only users with the
112111
<productname>PostgreSQL</productname> superuser privilege can
113112
use this language to create new functions.
114113
</para>

doc/src/sgml/xplang.sgml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/xplang.sgml,v 1.37 2010/04/03 07:22:56 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/xplang.sgml,v 1.38 2010/05/30 02:23:09 momjian Exp $ -->
22

33
<chapter id="xplang">
44
<title>Procedural Languages</title>
@@ -151,8 +151,10 @@ CREATE <optional>TRUSTED</optional> <optional>PROCEDURAL</optional> LANGUAGE <re
151151
<optional>VALIDATOR <replaceable>validator_function_name</replaceable></optional> ;
152152
</synopsis>
153153
The optional key word <literal>TRUSTED</literal> specifies that
154-
ordinary database users that have no superuser privileges should
155-
be allowed to use this language to create functions and trigger
154+
the language does not grant access to data that the user would
155+
not otherwise have. Trusted languages are designed for ordinary
156+
database users (those without superuser privilege) and allows them
157+
to safely create of functions and trigger
156158
procedures. Since PL functions are executed inside the database
157159
server, the <literal>TRUSTED</literal> flag should only be given
158160
for languages that do not allow access to database server

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy