- TRUSTED specifies that
- the language is safe, that is, it does not offer an
- unprivileged user any functionality to bypass access
- restrictions. If this key word is omitted when registering the
- language, only users with the
+ TRUSTED specifies that the language does
+ not grant access to data that the user would not otherwise
+ have. If this key word is omitted
+ when registering the language, only users with the
PostgreSQL superuser privilege can
use this language to create new functions.
-
+
Procedural Languages
VALIDATOR validator_function_name ;
The optional key word TRUSTED specifies that
- ordinary database users that have no superuser privileges should
- be allowed to use this language to create functions and trigger
+ the language does not grant access to data that the user would
+ not otherwise have. Trusted languages are designed for ordinary
+ database users (those without superuser privilege) and allows them
+ to safely create of functions and trigger
procedures. Since PL functions are executed inside the database
server, the TRUSTED flag should only be given
for languages that do not allow access to database server