Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
37.40. routines
Prev UpChapter 37. The Information SchemaHome Next

37.40. routines

The viewroutines contains all functions and procedures in the current database. Only those functions and procedures are shown that the current user has access to (by way of being the owner or having some privilege).

Table 37.38. routines Columns

NameData TypeDescription
specific_catalogsql_identifierName of the database containing the function (always the current database)
specific_schemasql_identifierName of the schema containing the function
specific_namesql_identifier Thespecific name of the function. This is a name that uniquely identifies the function in the schema, even if the real name of the function is overloaded. The format of the specific name is not defined, it should only be used to compare it to other instances of specific routine names.
routine_catalogsql_identifierName of the database containing the function (always the current database)
routine_schemasql_identifierName of the schema containing the function
routine_namesql_identifierName of the function (might be duplicated in case of overloading)
routine_typecharacter_dataFUNCTION for a function,PROCEDURE for a procedure
module_catalogsql_identifierApplies to a feature not available inPostgreSQL
module_schemasql_identifierApplies to a feature not available inPostgreSQL
module_namesql_identifierApplies to a feature not available inPostgreSQL
udt_catalogsql_identifierApplies to a feature not available inPostgreSQL
udt_schemasql_identifierApplies to a feature not available inPostgreSQL
udt_namesql_identifierApplies to a feature not available inPostgreSQL
data_typecharacter_data Return data type of the function, if it is a built-in type, orARRAY if it is some array (in that case, see the viewelement_types), elseUSER-DEFINED (in that case, the type is identified intype_udt_name and associated columns). Null for a procedure.
character_maximum_lengthcardinal_numberAlways null, since this information is not applied to return data types inPostgreSQL
character_octet_lengthcardinal_numberAlways null, since this information is not applied to return data types inPostgreSQL
character_set_catalogsql_identifierApplies to a feature not available inPostgreSQL
character_set_schemasql_identifierApplies to a feature not available inPostgreSQL
character_set_namesql_identifierApplies to a feature not available inPostgreSQL
collation_catalogsql_identifierAlways null, since this information is not applied to return data types inPostgreSQL
collation_schemasql_identifierAlways null, since this information is not applied to return data types inPostgreSQL
collation_namesql_identifierAlways null, since this information is not applied to return data types inPostgreSQL
numeric_precisioncardinal_numberAlways null, since this information is not applied to return data types inPostgreSQL
numeric_precision_radixcardinal_numberAlways null, since this information is not applied to return data types inPostgreSQL
numeric_scalecardinal_numberAlways null, since this information is not applied to return data types inPostgreSQL
datetime_precisioncardinal_numberAlways null, since this information is not applied to return data types inPostgreSQL
interval_typecharacter_dataAlways null, since this information is not applied to return data types inPostgreSQL
interval_precisioncardinal_numberAlways null, since this information is not applied to return data types inPostgreSQL
type_udt_catalogsql_identifier Name of the database that the return data type of the function is defined in (always the current database). Null for a procedure.
type_udt_schemasql_identifier Name of the schema that the return data type of the function is defined in. Null for a procedure.
type_udt_namesql_identifier Name of the return data type of the function. Null for a procedure.
scope_catalogsql_identifierApplies to a feature not available inPostgreSQL
scope_schemasql_identifierApplies to a feature not available inPostgreSQL
scope_namesql_identifierApplies to a feature not available inPostgreSQL
maximum_cardinalitycardinal_numberAlways null, because arrays always have unlimited maximum cardinality inPostgreSQL
dtd_identifiersql_identifier An identifier of the data type descriptor of the return data type of this function, unique among the data type descriptors pertaining to the function. This is mainly useful for joining with other instances of such identifiers. (The specific format of the identifier is not defined and not guaranteed to remain the same in future versions.)
routine_bodycharacter_data If the function is an SQL function, thenSQL, elseEXTERNAL.
routine_definitioncharacter_data The source text of the function (null if the function is not owned by a currently enabled role). (According to the SQL standard, this column is only applicable ifroutine_body isSQL, but inPostgreSQL it will contain whatever source text was specified when the function was created.)
external_namecharacter_data If this function is a C function, then the external name (link symbol) of the function; else null. (This works out to be the same value that is shown inroutine_definition.)
external_languagecharacter_dataThe language the function is written in
parameter_stylecharacter_data AlwaysGENERAL (The SQL standard defines other parameter styles, which are not available inPostgreSQL.)
is_deterministicyes_or_no If the function is declared immutable (called deterministic in the SQL standard), thenYES, elseNO. (You cannot query the other volatility levels available inPostgreSQL through the information schema.)
sql_data_accesscharacter_data AlwaysMODIFIES, meaning that the function possibly modifies SQL data. This information is not useful forPostgreSQL.
is_null_callyes_or_no If the function automatically returns null if any of its arguments are null, thenYES, elseNO. Null for a procedure.
sql_pathcharacter_dataApplies to a feature not available inPostgreSQL
schema_level_routineyes_or_no AlwaysYES (The opposite would be a method of a user-defined type, which is a feature not available inPostgreSQL.)
max_dynamic_result_setscardinal_numberApplies to a feature not available inPostgreSQL
is_user_defined_castyes_or_noApplies to a feature not available inPostgreSQL
is_implicitly_invocableyes_or_noApplies to a feature not available inPostgreSQL
security_typecharacter_data If the function runs with the privileges of the current user, thenINVOKER, if the function runs with the privileges of the user who defined it, thenDEFINER.
to_sql_specific_catalogsql_identifierApplies to a feature not available inPostgreSQL
to_sql_specific_schemasql_identifierApplies to a feature not available inPostgreSQL
to_sql_specific_namesql_identifierApplies to a feature not available inPostgreSQL
as_locatoryes_or_noApplies to a feature not available inPostgreSQL
createdtime_stampApplies to a feature not available inPostgreSQL
last_alteredtime_stampApplies to a feature not available inPostgreSQL
new_savepoint_levelyes_or_noApplies to a feature not available inPostgreSQL
is_udt_dependentyes_or_no Currently alwaysNO. The alternativeYES applies to a feature not available inPostgreSQL.
result_cast_from_data_typecharacter_dataApplies to a feature not available inPostgreSQL
result_cast_as_locatoryes_or_noApplies to a feature not available inPostgreSQL
result_cast_char_max_lengthcardinal_numberApplies to a feature not available inPostgreSQL
result_cast_char_octet_lengthcharacter_dataApplies to a feature not available inPostgreSQL
result_cast_char_set_catalogsql_identifierApplies to a feature not available inPostgreSQL
result_cast_char_set_schemasql_identifierApplies to a feature not available inPostgreSQL
result_cast_char_set_namesql_identifierApplies to a feature not available inPostgreSQL
result_cast_collation_catalogsql_identifierApplies to a feature not available inPostgreSQL
result_cast_collation_schemasql_identifierApplies to a feature not available inPostgreSQL
result_cast_collation_namesql_identifierApplies to a feature not available inPostgreSQL
result_cast_numeric_precisioncardinal_numberApplies to a feature not available inPostgreSQL
result_cast_numeric_precision_radixcardinal_numberApplies to a feature not available inPostgreSQL
result_cast_numeric_scalecardinal_numberApplies to a feature not available inPostgreSQL
result_cast_datetime_precisioncharacter_dataApplies to a feature not available inPostgreSQL
result_cast_interval_typecharacter_dataApplies to a feature not available inPostgreSQL
result_cast_interval_precisioncardinal_numberApplies to a feature not available inPostgreSQL
result_cast_type_udt_catalogsql_identifierApplies to a feature not available inPostgreSQL
result_cast_type_udt_schemasql_identifierApplies to a feature not available inPostgreSQL
result_cast_type_udt_namesql_identifierApplies to a feature not available inPostgreSQL
result_cast_scope_catalogsql_identifierApplies to a feature not available inPostgreSQL
result_cast_scope_schemasql_identifierApplies to a feature not available inPostgreSQL
result_cast_scope_namesql_identifierApplies to a feature not available inPostgreSQL
result_cast_maximum_cardinalitycardinal_numberApplies to a feature not available inPostgreSQL
result_cast_dtd_identifiersql_identifierApplies to a feature not available inPostgreSQL


Prev Up Next
37.39. routine_privileges Home 37.41. schemata
epubpdf
Go to PostgreSQL 11
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp