diff options
| author | Noah Misch <noah@leadboat.com> | 2014-02-17 09:33:31 -0500 |
|---|---|---|
| committer | Noah Misch <noah@leadboat.com> | 2014-02-17 09:33:31 -0500 |
| commit | 540b4e5bc85f7e44842493a810b04a84881db20f (patch) | |
| tree | 626a3a613fe9ac673a3d07d68ed8c65c434b5317 /doc/src/sgml/plhandler.sgml | |
| parent | 537cbd35c893e67a63c59bc636c3e888bd228bc7 (diff) | |
Document security implications of check_function_bodies.
Back-patch to 8.4 (all supported versions).
Diffstat (limited to 'doc/src/sgml/plhandler.sgml')
| -rw-r--r-- | doc/src/sgml/plhandler.sgml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/src/sgml/plhandler.sgml b/doc/src/sgml/plhandler.sgml index aa4bba3bee1..0fc5d7b411b 100644 --- a/doc/src/sgml/plhandler.sgml +++ b/doc/src/sgml/plhandler.sgml @@ -194,11 +194,13 @@ CREATE LANGUAGE plsample <para> Validator functions should typically honor the <xref linkend="guc-check-function-bodies"> parameter: if it is turned off then - any expensive or context-sensitive checking should be skipped. - In particular, this parameter is turned off by <application>pg_dump</> - so that it can load procedural language functions without worrying - about possible dependencies of the function bodies on other database - objects. (Because of this requirement, the call handler should avoid + any expensive or context-sensitive checking should be skipped. If the + language provides for code execution at compilation time, the validator + must suppress checks that would induce such execution. In particular, + this parameter is turned off by <application>pg_dump</> so that it can + load procedural language functions without worrying about side effects or + dependencies of the function bodies on other database objects. + (Because of this requirement, the call handler should avoid assuming that the validator has fully checked the function. The point of having a validator is not to let the call handler omit checks, but to notify the user immediately if there are obvious errors in a |
