Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit61384de

Browse files
committed
Add hint about using GRANT with non-trusted languages.
James William Pye
1 parent0476bbb commit61384de

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)

[8]ページ先頭

©2009-2025 Movatter.jp