| PostgreSQL 7.4 文檔 | ||||
|---|---|---|---|---|
| Prev | Fast Backward | Chapter 32. 信息模式 | Fast Forward | Next |
視圖 routine_privileges 標識在函數上所有賦予當前用戶或者由當前用戶賦予的權限。 每個函數,授權人,和權限接受人的組合都有一行。給組賦予的權限在視圖 role_routine_grants 裡標出。
Table 32-23. routine_privileges 字段
| 名字 | 數據類型 | 描述 |
|---|---|---|
| grantor | sql_identifier | 賦予權限的用戶的名字 |
| grantee | sql_identifier | 被授予權限的用戶或者組的名字 |
| specific_catalog | sql_identifier | 包含該函數的數據庫名字(總是當前數據庫) |
| specific_schema | sql_identifier | 包含該函數的模式的名字 |
| specific_name | sql_identifier | 函數"具體的名字"。參閱 Section 32.26 獲取更多信息。 |
| routine_catalog | sql_identifier | 包含該函數的數據庫的名字(總是當前數據庫) |
| routine_schema | sql_identifier | 包含該函數的模式的名字 |
| routine_name | sql_identifier | 函數的名字(可能會因大小寫或者重載而重復) |
| privilege_type | character_data | 總是 EXECUTE (用于函數的唯一的權限類型) |
| is_grantable | character_data | 如果權限是可賦予的,則為 YES,如果不是,為 NO |
請注意,字段 grantee 並不區分用戶和組。 如果你有同名的用戶和組,那麼是沒有辦法區分它們的。將來版本的 PostgreSQL 很可能將禁止用戶和組同名。