Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 61384de

Browse files
committed
Add hint about using GRANT with non-trusted languages.
James William Pye
1 parent 0476bbb commit 61384de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/catalog/aclchk.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/aclchk.c,v 1.104 2004/06/18 06:13:19 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/aclchk.c,v 1.105 2004/08/29 03:04:15 momjian Exp $
1212
*
1313
* NOTES
1414
* See acl.h.
@@ -760,7 +760,8 @@ ExecuteGrantStmt_Language(GrantStmt *stmt)
760760
if (!pg_language_tuple->lanpltrusted)
761761
ereport(ERROR,
762762
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
763-
errmsg("language \"%s\" is not trusted", langname)));
763+
errmsg("language \"%s\" is not trusted", langname),
764+
errhint("Only superusers may use untrusted languages.")));
764765

765766
/*
766767
* Note: for now, languages are treated as owned by the bootstrap

0 commit comments

Comments
 (0)