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

45.2. PL/Perlにおけるデータ値 #

<title>Data Values in PL/Perl</title>

The argument values supplied to a PL/Perl function's code are simply the input arguments converted to text form (just as if they had been displayed by a <command>SELECT</command> statement). Conversely, the <function>return</function> and <function>return_next</function> commands will accept any string that is acceptable input format for the function's declared return type. PL/Perl関数のコードに渡される引数値は、単に(SELECT文で表示される場合と同様の)テキスト形式に変換された入力引数です。 反対にreturnおよびreturn_nextコマンドは、関数の宣言された戻り値の型で受け付け可能な入力書式で表された任意の文字列を受け付けます。

If this behavior is inconvenient for a particular case, it can be improved by using a transform, as already illustrated for <type>bool</type> values. Several examples of transform modules are included in the <productname>PostgreSQL</productname> distribution. この動作が特定の場合には不都合であるなら、前にbool値の例で説明したように、変換を使って改善できます。 変換モジュールの例がいくつかPostgreSQLの配布物に含まれています。