バージョンごとのドキュメント一覧

37.45. routines #

The view <literal>routines</literal> 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). routinesビューには現在のデータベース内の全ての関数とプロシージャがあります。 表示される関数とプロシージャは、現在のユーザが(所有者である、何らかの権限を持っているといった方法で)アクセスできるものだけです。

表37.43 routinesの列

<title><structname>routines</structname> Columns</title>

Column Type 列 型

Description 説明

specific_catalog sql_identifier

Name of the database containing the function (always the current database) 関数が含まれるデータベースの名前です(常に現在のデータベースです)。

specific_schema sql_identifier

Name of the schema containing the function 関数が含まれるスキーマの名前です。

specific_name sql_identifier

The <quote>specific name</quote> 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_catalog sql_identifier

Name of the database containing the function (always the current database) 関数が含まれるデータベースの名前です(常に現在のデータベースです)。

routine_schema sql_identifier

Name of the schema containing the function 関数が含まれるスキーマの名前です。

routine_name sql_identifier

Name of the function (might be duplicated in case of overloading) 関数の名前です(オーバーロードされている場合は重複する可能性があります)。

routine_type character_data

<literal>FUNCTION</literal> for a function, <literal>PROCEDURE</literal> for a procedure 関数に対してはFUNCTION、プロシージャに対してはPROCEDUREです。

module_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

module_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

module_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

udt_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

udt_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

udt_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

data_type character_data

Return data type of the function, if it is a built-in type, or <literal>ARRAY</literal> if it is some array (in that case, see the view <literal>element_types</literal>), else <literal>USER-DEFINED</literal> (in that case, the type is identified in <literal>type_udt_name</literal> and associated columns). Null for a procedure. 関数の戻り値が組み込み型の場合、そのデータ型です。 何らかの配列の場合はARRAYです (この場合は、element_typesビューを参照してください)。 さもなくば、USER-DEFINEDです (この場合、その型はtype_udt_nameと関連する列によって識別されます)。 プロシージャに対してはNULLです。

character_maximum_length cardinal_number

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

character_octet_length cardinal_number

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

character_set_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

character_set_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

character_set_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

collation_catalog sql_identifier

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

collation_schema sql_identifier

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

collation_name sql_identifier

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

numeric_precision cardinal_number

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

numeric_precision_radix cardinal_number

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

numeric_scale cardinal_number

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

datetime_precision cardinal_number

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

interval_type character_data

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

interval_precision cardinal_number

Always null, since this information is not applied to return data types in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは、この情報は戻り値のデータ型に当てはまらないからです。

type_udt_catalog sql_identifier

Name of the database that the return data type of the function is defined in (always the current database). Null for a procedure. 関数の戻り値のデータ型が定義されたデータベースの名前です (常に現在のデータベースです)。 プロシージャに対してはNULLです。

type_udt_schema sql_identifier

Name of the schema that the return data type of the function is defined in. Null for a procedure. 関数の戻り値のデータ型が定義されたスキーマの名前です。 プロシージャに対してはNULLです。

type_udt_name sql_identifier

Name of the return data type of the function. Null for a procedure. 関数の戻り値のデータ型の名前です。 プロシージャに対してはNULLです。

scope_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

scope_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

scope_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

maximum_cardinality cardinal_number

Always null, because arrays always have unlimited maximum cardinality in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは配列の次数は無制限だからです。

dtd_identifier sql_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_body character_data

If the function is an SQL function, then <literal>SQL</literal>, else <literal>EXTERNAL</literal>. 関数がSQL関数ならばSQL、さもなくばEXTERNALです。

routine_definition character_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 if <literal>routine_body</literal> is <literal>SQL</literal>, but in <productname>PostgreSQL</productname> it will contain whatever source text was specified when the function was created.) 関数のソーステキストです (現在有効なロールがその関数の所有者でなければNULLです)。 (標準SQLに従うと、routine_bodySQLの場合にのみ適用されます。 しかし、PostgreSQLでは、関数が作成された時に指定されたソーステキストが常に含まれます。)

external_name character_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 in <literal>routine_definition</literal>.) 関数がC関数の場合関数の外部名(リンクシンボル)、さもなくばNULLです。 (これはroutine_definitionで示した値と同じになるように動作します。)

external_language character_data

The language the function is written in その関数を作成した言語です。

parameter_style character_data

Always <literal>GENERAL</literal> (The SQL standard defines other parameter styles, which are not available in <productname>PostgreSQL</productname>.) 常にGENERALです (標準SQLでは他のパラメータ様式も定義していますが、これらはPostgreSQLでは使用できません)。

is_deterministic yes_or_no

If the function is declared immutable (called deterministic in the SQL standard), then <literal>YES</literal>, else <literal>NO</literal>. (You cannot query the other volatility levels available in <productname>PostgreSQL</productname> through the information schema.) 関数が不変である(標準SQLでは決定性があると呼びます)と宣言されている場合YES、さもなくばNOです。 (情報スキーマ経由ではPostgreSQLで使用できる他の変動レベルを問い合わせることはできません。)

sql_data_access character_data

Always <literal>MODIFIES</literal>, meaning that the function possibly modifies SQL data. This information is not useful for <productname>PostgreSQL</productname>. 常に、関数がSQLデータを変更することができることを意味するMODIFIESです。 この情報はPostgreSQLでは有用ではありません。

is_null_call yes_or_no

If the function automatically returns null if any of its arguments are null, then <literal>YES</literal>, else <literal>NO</literal>. Null for a procedure. その関数の引数のいずれかがNULLの場合に、自動的にNULLを返す場合はYES、さもなくばNOです。 プロシージャに対してはNULLです。

sql_path character_data

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

schema_level_routine yes_or_no

Always <literal>YES</literal> (The opposite would be a method of a user-defined type, which is a feature not available in <productname>PostgreSQL</productname>.) 常にYESです。 (この反対はユーザ定義の種類による方法となります。 これはPostgreSQLでは使用できない機能です。)

max_dynamic_result_sets cardinal_number

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

is_user_defined_cast yes_or_no

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

is_implicitly_invocable yes_or_no

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

security_type character_data

If the function runs with the privileges of the current user, then <literal>INVOKER</literal>, if the function runs with the privileges of the user who defined it, then <literal>DEFINER</literal>. 現在のユーザ権限で関数が動作する場合INVOKER、定義したユーザの権限で関数が動作する場合DEFINERです。

to_sql_specific_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

to_sql_specific_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

to_sql_specific_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

as_locator yes_or_no

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

created time_stamp

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

last_altered time_stamp

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

new_savepoint_level yes_or_no

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

is_udt_dependent yes_or_no

Currently always <literal>NO</literal>. The alternative <literal>YES</literal> applies to a feature not available in <productname>PostgreSQL</productname>. 現在は常にNOです。もう一方のYESPostgreSQLで利用できない機能に適用されるものです。

result_cast_from_data_type character_data

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_as_locator yes_or_no

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_char_max_length cardinal_number

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_char_octet_length cardinal_number

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_char_set_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_char_set_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_char_set_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_collation_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_collation_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_collation_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_numeric_precision cardinal_number

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_numeric_precision_radix cardinal_number

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_numeric_scale cardinal_number

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_datetime_precision cardinal_number

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_interval_type character_data

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_interval_precision cardinal_number

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_type_udt_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_type_udt_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_type_udt_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_scope_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_scope_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_scope_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_maximum_cardinality cardinal_number

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

result_cast_dtd_identifier sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。