pg_proc stores information about functions, procedures, aggregate functions, and window functions (collectively also known as routines). See CREATE FUNCTION, CREATE PROCEDURE, and Section 38.3 for more information.
prokind indicates that the entry is for an aggregate function, there should be a matching row in
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
For compiled functions, both built-in and dynamically loaded,
prosrc contains the function's C-language name (link symbol). For all other currently-known language types,
prosrc contains the function's source text.
probin is unused except for dynamically-loaded C functions, for which it gives the name of the shared library file containing the function.