Commit 61384de6 authored by Bruce Momjian's avatar Bruce Momjian

Add hint about using GRANT with non-trusted languages.

James William Pye
parent 0476bbbc
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment