51.39. pg_proc
版本:11
目錄 pg_proc 儲存有關函數、程序函數、彙總函數和窗函數(或統稱為 routines)的資訊。 有關更多資訊,請參閱 CREATE FUNCTION,CREATE PROCEDURE 和第 37.3 節。
如果 prokind 指示該項目用於彙總函數,則 pg_aggregate 中應有相對應的資料列。
Table 51.39. pg_proc
Columns
pg_proc
ColumnsName | Type | References | Description |
---|---|---|---|
|
| Row identifier (hidden attribute; must be explicitly selected) | |
|
| Name of the function | |
|
|
| The OID of the namespace that contains this function |
|
|
| Owner of the function |
|
|
| Implementation language or call interface of this function |
|
| Estimated execution cost (in units of cpu_operator_cost); if | |
|
| Estimated number of result rows (zero if not | |
|
|
| Data type of the variadic array parameter's elements, or zero if the function does not have a variadic parameter |
|
|
| Calls to this function can be simplified by this other function (see Section 38.10.10) |
|
|
| |
|
| Function is a security definer (i.e., a “setuid” function) | |
|
| The function has no side effects. No information about the arguments is conveyed except via the return value. Any function that might throw an error depending on the values of its arguments is not leak-proof. | |
|
| Function returns null if any call argument is null. In that case the function won't actually be called at all. Functions that are not “strict” must be prepared to handle null inputs. | |
|
| Function returns a set (i.e., multiple values of the specified data type) | |
|
|
| |
|
|
| |
|
| Number of input arguments | |
|
| Number of arguments that have defaults | |
|
|
| Data type of the return value |
|
|
| An array with the data types of the function arguments. This includes only input arguments (including |
|
|
| An array with the data types of the function arguments. This includes all arguments (including |
|
| An array with the modes of the function arguments, encoded as | |
|
| An array with the names of the function arguments. Arguments without a name are set to empty strings in the array. If none of the arguments have a name, this field will be null. Note that subscripts correspond to positions of | |
|
| Expression trees (in | |
|
| Data type OIDs for which to apply transforms. | |
|
| This tells the function handler how to invoke the function. It might be the actual source code of the function for interpreted languages, a link symbol, a file name, or just about anything else, depending on the implementation language/call convention. | |
|
| Additional information about how to invoke the function. Again, the interpretation is language-specific. | |
|
| Function's local settings for run-time configuration variables | |
|
|
對於內建和動態載入的已編譯函數,prosrc 包含函數的 C 語言名稱(link symbol)。 對於所有其他目前已知的語言類型,prosrc 包含函數的原始碼。除了動態載入的 C 函數外,probin 均未使用,因為它用於記錄該函數的共享函式庫檔案的名稱。