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

Lines changed: 3 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy