Add hint about using GRANT with non-trusted languages.

James William Pye
This commit is contained in:
Bruce Momjian 2004-08-29 03:04:15 +00:00
parent 0476bbbc9b
commit 61384de6f9

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/aclchk.c,v 1.104 2004/06/18 06:13:19 tgl Exp $
* $PostgreSQL: pgsql/src/backend/catalog/aclchk.c,v 1.105 2004/08/29 03:04:15 momjian Exp $
*
* NOTES
* See acl.h.
@ -760,7 +760,8 @@ ExecuteGrantStmt_Language(GrantStmt *stmt)
if (!pg_language_tuple->lanpltrusted)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("language \"%s\" is not trusted", langname)));
errmsg("language \"%s\" is not trusted", langname),
errhint("Only superusers may use untrusted languages.")));
/*
* Note: for now, languages are treated as owned by the bootstrap