mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Add hint about using GRANT with non-trusted languages.
James William Pye
This commit is contained in:
parent
0476bbbc9b
commit
61384de6f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user