| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 949f22d commit dabdb39
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -272,7 +272,7 @@ | |||
| 272 | 272 | specified and set to <literal>C</literal> or | |
| 273 | 273 | <literal>C.UTF-8</literal>. | |
| 274 | 274 | </span> | |
| 275 | - 《機械翻訳》<code class="option">--locale-provider</code>が<code class="literal">builtin</code>の場合、<code class="option">--locale</code>または<code class="option">--builtin-locale</code>を指定し、<code class="literal">C</code>または<code class="literal">C.UTF-8</code>に設定する必要があります。 | ||
| 275 | + <code class="option">--locale-provider</code>が<code class="literal">builtin</code>の場合、<code class="option">--locale</code>または<code class="option">--builtin-locale</code>を指定し、<code class="literal">C</code>または<code class="literal">C.UTF-8</code>に設定する必要があります。 | ||
| 276 | 276 | </p></dd><dt id="APP-INITDB-OPTION-LC-COLLATE"><span class="term"><code class="option">--lc-collate=<em class="replaceable"><code>locale</code></em></code><br /></span><span class="term"><code class="option">--lc-ctype=<em class="replaceable"><code>locale</code></em></code><br /></span><span class="term"><code class="option">--lc-messages=<em class="replaceable"><code>locale</code></em></code><br /></span><span class="term"><code class="option">--lc-monetary=<em class="replaceable"><code>locale</code></em></code><br /></span><span class="term"><code class="option">--lc-numeric=<em class="replaceable"><code>locale</code></em></code><br /></span><span class="term"><code class="option">--lc-time=<em class="replaceable"><code>locale</code></em></code></span> <a href="#APP-INITDB-OPTION-LC-COLLATE" class="id_link">#</a></dt><dd><p> | |
| 277 | 277 | <span class="original"> | |
| 278 | 278 | Like <option>&#45;-locale</option>, but only sets the locale in | |
@@ -289,10 +289,8 @@ | |||
| 289 | 289 | Specifies the locale name when the builtin provider is used. Locale support | |
| 290 | 290 | is described in <xref linkend="locale"/>. | |
| 291 | 291 | </span> | |
| 292 | - 《マッチ度[73.504274]》ICUロケールプロバイダを使用する場合に、ICUロケールを指定します。 | ||
| 292 | + 組み込みプロバイダを使用する場合にロケール名を指定します。 | ||
| 293 | 293 | ロケールサポートは<a class="xref" href="locale.html" title="23.1. ロケールのサポート">23.1</a>に記載されています。 | |
| 294 | - 《機械翻訳》組み込みプロバイダを使用する場合にロケール名を指定します。 | ||
| 295 | - ロケールのサポートについては<a class="xref" href="locale.html" title="23.1. ロケールのサポート">23.1</a>を参照してください。 | ||
| 296 | 294 | </p></dd><dt id="APP-INITDB-OPTION-LOCALE-PROVIDER"><span class="term"><code class="option">--locale-provider={<code class="literal">builtin</code>|<code class="literal">libc</code>|<code class="literal">icu</code>}</code></span> <a href="#APP-INITDB-OPTION-LOCALE-PROVIDER" class="id_link">#</a></dt><dd><p> | |
| 297 | 295 | <span class="original"> | |
| 298 | 296 | This option sets the locale provider for databases created in the new | |
@@ -457,7 +455,7 @@ | |||
| 457 | 455 | can be used to debug the <application>initdb</application> | |
| 458 | 456 | installation. | |
| 459 | 457 | </span> | |
| 460 | - 《機械翻訳》何もせずに内部設定を表示して終了します。 | ||
| 458 | + 内部設定を表示して終了します。それ以外には何もしません。 | ||
| 461 | 459 | これは<span class="application">initdb</span>インストールをデバッグするために使用できます。 | |
| 462 | 460 | </p></dd><dt id="APP-INITDB-OPTION-SYNC-METHOD"><span class="term"><code class="option">--sync-method=<em class="replaceable"><code>method</code></em></code></span> <a href="#APP-INITDB-OPTION-SYNC-METHOD" class="id_link">#</a></dt><dd><p> | |
| 463 | 461 | <span class="original"> | |
@@ -466,7 +464,7 @@ | |||
| 466 | 464 | files in the data directory. The search for files will follow symbolic | |
| 467 | 465 | links for the WAL directory and each configured tablespace. | |
| 468 | 466 | </span> | |
| 469 | - 《機械翻訳》デフォルトの<code class="literal">fsync</code>に設定すると、<code class="command">initdb</code>はデータディレクトリ内の全てのファイルを再帰的に開いて同期します。 | ||
| 467 | + デフォルトの<code class="literal">fsync</code>に設定すると、<code class="command">initdb</code>はデータディレクトリ内のファイルをすべて再帰的に開いて同期します。 | ||
| 470 | 468 | ファイルの検索はWALディレクトリと設定された各テーブル空間のシンボリックリンクをたどります。 | |
| 471 | 469 | </p><p> | |
| 472 | 470 | <span class="original"> | |
@@ -476,13 +474,13 @@ | |||
| 476 | 474 | <xref linkend="guc-recovery-init-sync-method"/> for information about | |
| 477 | 475 | the caveats to be aware of when using <literal>syncfs</literal>. | |
| 478 | 476 | </span> | |
| 479 | - 《機械翻訳》Linuxでは、<code class="literal">syncfs</code>を代わりに使用して、オペレーティングシステム、WALファイル、各テーブル空間を含むファイルシステム全体を同期させるようにオペレーティングシステムに要求できます。 | ||
| 477 | + Linuxでは、<code class="literal">syncfs</code>を代わりに使用して、データディレクトリ、WALファイル、各テーブル空間を含むファイルシステム全体を同期させるようにオペレーティングシステムに要求できます。 | ||
| 480 | 478 | <code class="literal">syncfs</code>を使用する際に注意すべき点については、<a class="xref" href="runtime-config-error-handling.html#GUC-RECOVERY-INIT-SYNC-METHOD">recovery_init_sync_method</a>を参照してください。 | |
| 481 | 479 | </p><p> | |
| 482 | 480 | <span class="original"> | |
| 483 | 481 | This option has no effect when <option>&#45;-no-sync</option> is used. | |
| 484 | 482 | </span> | |
| 485 | - 《機械翻訳》このオプションは<code class="option">--no-sync</code>が使われている場合は効果がありません。 | ||
| 483 | + このオプションは<code class="option">--no-sync</code>が使われている場合は効果がありません。 | ||
| 486 | 484 | </p></dd><dt id="APP-INITDB-OPTION-SYNC-ONLY"><span class="term"><code class="option">-S</code><br /></span><span class="term"><code class="option">--sync-only</code></span> <a href="#APP-INITDB-OPTION-SYNC-ONLY" class="id_link">#</a></dt><dd><p> | |
| 487 | 485 | <span class="original"> | |
| 488 | 486 | Safely write all database files to disk and exit. This does not | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -945,12 +945,9 @@ | |||
| 945 | 945 | <literal>RETURNING</literal> clause. Some utility | |
| 946 | 946 | commands such as <command>EXPLAIN</command> will work too. | |
| 947 | 947 | </span> | |
| 948 | - 《マッチ度[87.133183]》この種類の<code class="literal">FOR</code>文の<em class="replaceable"><code>query</code></em>としては、呼び出し元に行を返すSQLコマンドをすべて使用できます。 | ||
| 949 | - 通常は<code class="command">SELECT</code>ですが、<code class="literal">RETURNING</code>句を持つ<code class="command">INSERT</code>、<code class="command">UPDATE</code>または<code class="command">DELETE</code>も使用できます。 | ||
| 948 | + この種類の<code class="literal">FOR</code>文の<em class="replaceable"><code>query</code></em>としては、呼び出し元に行を返すSQLコマンドをすべて使用できます。 | ||
| 949 | + 通常は<code class="command">SELECT</code>ですが、<code class="literal">RETURNING</code>句を持つ<code class="command">INSERT</code>、<code class="command">UPDATE</code>、<code class="command">DELETE</code>または<code class="command">MERGE</code>も使用できます。 | ||
| 950 | 950 | <code class="command">EXPLAIN</code>などのユーティリティコマンドも作動します。 | |
| 951 | - 《機械翻訳》このタイプの<code class="literal">FOR</code>文で使用される<em class="replaceable"><code>query</code></em>は、呼び出し元に行を返す任意のSQLコマンドです。 | ||
| 952 | - 最も一般的なケースは<code class="command">SELECT</code>ですが、<code class="command">INSERT</code>、<code class="command">UPDATE</code>、<code class="command">DELETE</code>、<code class="command">MERGE</code>に<code class="literal">RETURNING</code>句を使用することもできます。 | ||
| 953 | - <code class="command">EXPLAIN</code>などのユーティリティコマンドも動作します。 | ||
| 954 | 951 | </p><p> | |
| 955 | 952 | <span class="original"> | |
| 956 | 953 | <application>PL/pgSQL</application> variables are replaced by query parameters, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -456,14 +456,10 @@ | |||
| 456 | 456 | table. To declare a variable with the same data type as | |
| 457 | 457 | <literal>users.user_id</literal> you write: | |
| 458 | 458 | </span> | |
| 459 | - 《マッチ度[78.450363]》<code class="literal">%TYPE</code>は変数やテーブル列のデータ型を提供します。 | ||
| 460 | - これを使用してデータベース値を保持する変数を宣言することができます。 | ||
| 459 | + <code class="literal">%TYPE</code>はテーブル列や以前に宣言された<span class="application">PL/pgSQL</span>変数のデータ型を提供します。 | ||
| 460 | + これを使用してデータベース値を保持する変数を宣言できます。 | ||
| 461 | 461 | 例えば、<code class="literal">users</code>テーブルに<code class="literal">user_id</code>という列があるものとします。 | |
| 462 | 462 | <code class="literal">users.user_id</code>と同じデータ型の変数を宣言するには、以下のように記述します。 | |
| 463 | - 《機械翻訳》<code class="literal">%TYPE</code>は、テーブル列または以前に宣言された<span class="application">PL/pgSQL</span>変数のデータ型を提供します。 | ||
| 464 | - これを使用して、データベース値を保持する変数を宣言できます。 | ||
| 465 | - たとえば、<code class="literal">users</code>テーブルに<code class="literal">user_id</code>という名前の列があるとします。 | ||
| 466 | - <code class="literal">users.user_id</code>と同じデータ型で変数を宣言するには、次のように書きます。 | ||
| 467 | 463 | </p><pre class="programlisting"> | |
| 468 | 464 | user_id users.user_id%TYPE; | |
| 469 | 465 | </pre><p> | |
@@ -473,10 +469,13 @@ | |||
| 473 | 469 | after <literal>%TYPE</literal>, thereby creating a variable that holds | |
| 474 | 470 | an array of the referenced type: | |
| 475 | 471 | </span> | |
| 476 | - 《機械翻訳》<code class="literal">%TYPE</code>の後に配列修飾子を書くことも可能で、それによって参照される型の配列を保持する変数が作成されます。 | ||
| 472 | + <code class="literal">%TYPE</code>の後に配列修飾を書くことも可能で、それによって参照される型の配列を保持する変数が作成されます。 | ||
| 477 | 473 | </p><pre class="programlisting"> | |
| 478 | 474 | user_ids users.user_id%TYPE[]; | |
| 479 | - user_ids users.user_id%TYPE ARRAY[4]; -- equivalent to the above | ||
| 475 | + <span class="original"> | ||
| 476 | + user_ids users.user_id%TYPE ARRAY[4]; &#45;- equivalent to the above | ||
| 477 | + </span> | ||
| 478 | + user_ids users.user_id%TYPE ARRAY[4]; -- 上と同じ | ||
| 480 | 479 | </pre><p> | |
| 481 | 480 | <span class="original"> | |
| 482 | 481 | Just as when declaring table columns that are arrays, it doesn't | |
@@ -485,8 +484,9 @@ | |||
| 485 | 484 | a given element type as the same type, regardless of dimensionality. | |
| 486 | 485 | (See <xref linkend="arrays-declaration"/>.) | |
| 487 | 486 | </span> | |
| 488 | - 《機械翻訳》配列を宣言する際と同様に、複数の括弧のペアを書くか、特定の配列の次元を書くかは問題ではありません。 | ||
| 489 | - <span class="productname">PostgreSQL</span>は、次元性に関係なく、与えられた要素型のすべての配列を同じ型として扱います(<a class="xref" href="arrays.html#ARRAYS-DECLARATION" title="8.15.1. 配列型の宣言">8.15.1</a>を参照してください)。 | ||
| 487 | + 配列であるテーブル列を宣言する際と同様に、複数の括弧のペアを書くか、特定の配列の次元を書くかは問題ではありません。 | ||
| 488 | + <span class="productname">PostgreSQL</span>は、次元性に関係なく、与えられた要素型の配列をすべて同じ型として扱います。 | ||
| 489 | + (<a class="xref" href="arrays.html#ARRAYS-DECLARATION" title="8.15.1. 配列型の宣言">8.15.1</a>を参照してください。) | ||
| 490 | 490 | </p><p> | |
| 491 | 491 | <span class="original"> | |
| 492 | 492 | By using <literal>%TYPE</literal> you don't need to know the data | |
@@ -548,7 +548,7 @@ | |||
| 548 | 548 | followed by array decoration to declare a variable that holds an array | |
| 549 | 549 | of the referenced composite type. | |
| 550 | 550 | </span> | |
| 551 | - 《機械翻訳》<code class="literal">%TYPE</code>と同様に、<code class="literal">%ROWTYPE</code>の後に配列デコレーションを付けることで、参照される複合型の配列を保持する変数を宣言できます。 | ||
| 551 | + <code class="literal">%TYPE</code>と同様に、<code class="literal">%ROWTYPE</code>の後に配列修飾を付けることで、参照される複合型の配列を保持する変数を宣言できます。 | ||
| 552 | 552 | </p><p> | |
| 553 | 553 | <span class="original"> | |
| 554 | 554 | Parameters to a function can be | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -93,12 +93,9 @@ | |||
| 93 | 93 | source for a <command>FOR</command> loop, as described in | |
| 94 | 94 | <xref linkend="plpgsql-records-iterating"/>. | |
| 95 | 95 | </span> | |
| 96 | - 《マッチ度[89.441931]》コマンドが行を返すのであれば(例えば<code class="command">SELECT</code>や<code class="literal">RETURNING</code>を伴う<code class="command">INSERT</code>/<code class="command">UPDATE</code>/<code class="command">DELETE</code>など)、処理する方法が2つあります。 | ||
| 96 | + コマンドが行を返すのであれば(例えば<code class="command">SELECT</code>や<code class="literal">RETURNING</code>を伴う<code class="command">INSERT</code>/<code class="command">UPDATE</code>/<code class="command">DELETE</code>/<code class="command">MERGE</code>など)、処理する方法が2つあります。 | ||
| 97 | 97 | コマンドが多くても1行を返す場合、もしくは出力の最初の行だけに関心がある場合には、<a class="xref" href="plpgsql-statements.html#PLPGSQL-STATEMENTS-SQL-ONEROW" title="41.5.3. 1行の結果を返すコマンドの実行">41.5.3</a>に書かれているように、出力を取得するための<code class="literal">INTO</code>句を追加する以外は通常通りコマンドを書いてください。 | |
| 98 | 98 | 出力行をすべて処理するためには、<a class="xref" href="plpgsql-control-structures.html#PLPGSQL-RECORDS-ITERATING" title="41.6.6. 問い合わせ結果による繰り返し">41.6.6</a>に書かれているように、<code class="command">FOR</code>ループに対するデータソースとしてコマンドを書いてください。 | |
| 99 | - 《機械翻訳》コマンドが行を返す場合(例えば<code class="command">SELECT</code>、<code class="command">INSERT</code>/<code class="command">UPDATE</code>/<code class="command">DELETE</code>/<code class="command">MERGE</code>と<code class="literal">RETURNING</code>を伴う)、2つの方法があります。 | ||
| 100 | - コマンドが最大1行を返す場合、または出力の最初の行だけを気にする場合は、通常どおりコマンドを書きますが、<a class="xref" href="plpgsql-statements.html#PLPGSQL-STATEMENTS-SQL-ONEROW" title="41.5.3. 1行の結果を返すコマンドの実行">41.5.3</a>で説明したように、<code class="literal">INTO</code>句を追加して出力を取り込みます。 | ||
| 101 | - すべての出力行を処理するには、<a class="xref" href="plpgsql-control-structures.html#PLPGSQL-RECORDS-ITERATING" title="41.6.6. 問い合わせ結果による繰り返し">41.6.6</a>で説明したように、<code class="command">FOR</code>ループのデータソースとしてコマンドを書いてください。 | ||
| 102 | 99 | </p><p> | |
| 103 | 100 | <span class="original"> | |
| 104 | 101 | Usually it is not sufficient just to execute statically-defined SQL | |
@@ -251,14 +248,10 @@ | |||
| 251 | 248 | Except for the <literal>INTO</literal> clause, the SQL command is the same | |
| 252 | 249 | as it would be written outside <application>PL/pgSQL</application>. | |
| 253 | 250 | </span> | |
| 254 | - 《マッチ度[88.604353]》ここで、<em class="replaceable"><code>target</code></em>はレコード変数、行変数、あるいは、単純な変数とレコード/行変数のフィールドをカンマで区切ったリストです。 | ||
| 251 | + ここで、<em class="replaceable"><code>target</code></em>はレコード変数、行変数、あるいは、単純な変数とレコード/行変数のフィールドをカンマで区切ったリストです。 | ||
| 255 | 252 | 上述のように<span class="application">PL/pgSQL</span>変数によりコマンドの残り(すなわち、<code class="literal">INTO</code>句以外のすべて)が置換され、同じように計画がキャッシュされます。 | |
| 256 | - このように作動するのは、<code class="command">SELECT</code>、<code class="literal">RETURNING</code>を伴った<code class="command">INSERT</code>/<code class="command">UPDATE</code>/<code class="command">DELETE</code>とおよび<code class="command">EXPLAIN</code>のような行セットの結果を返す特定のユーティリティコマンドです。 | ||
| 253 | + このように作動するのは、<code class="command">SELECT</code>、<code class="literal">RETURNING</code>を伴った<code class="command">INSERT</code>/<code class="command">UPDATE</code>/<code class="command">DELETE</code>/<code class="command">MERGE</code>および<code class="command">EXPLAIN</code>のような行セットの結果を返す特定のユーティリティコマンドです。 | ||
| 257 | 254 | <code class="literal">INTO</code>句以外では、SQLコマンドは<span class="application">PL/pgSQL</span>の外部に記述したものと同じです。 | |
| 258 | - 《機械翻訳》ここで<em class="replaceable"><code>target</code></em>はレコード変数、行変数、または単純な変数とレコード/行フィールドのカンマ区切りリストです。 | ||
| 259 | - 上記のように、<span class="application">PL/pgSQL</span>変数はコマンドの残りの部分(つまり<code class="literal">INTO</code>句以外の部分)に置換され、計画は同じ方法でキャッシュされます。 | ||
| 260 | - これは<code class="command">SELECT</code>、<code class="command">INSERT</code>/<code class="command">UPDATE</code>/<code class="command">DELETE</code>/<code class="command">MERGE</code>、<code class="literal">RETURNING</code>を伴う特定のユーティリティコマンド、および行セットを返す<code class="command">EXPLAIN</code>などに有効です。 | ||
| 261 | - <code class="literal">INTO</code>句を除き、SQLコマンドは<span class="application">PL/pgSQL</span>の外部で書かれた場合と同じです。 | ||
| 262 | 255 | </p><div class="tip"><h3 class="title">ヒント</h3><p> | |
| 263 | 256 | <span class="original"> | |
| 264 | 257 | Note that this interpretation of <command>SELECT</command> with <literal>INTO</literal> | |
@@ -357,10 +350,8 @@ | |||
| 357 | 350 | is no option such as <literal>ORDER BY</literal> with which to determine | |
| 358 | 351 | which affected row should be returned. | |
| 359 | 352 | </span> | |
| 360 | - 《マッチ度[86.714976]》<span class="application">PL/pgSQL</span>は<code class="literal">STRICT</code>が指定されない場合でも、<code class="literal">RETURNING</code>を伴った<code class="command">INSERT</code>/<code class="command">UPDATE</code>/<code class="command">DELETE</code>が2行以上を返した時は、エラーとなります。 | ||
| 353 | + <span class="application">PL/pgSQL</span>は<code class="literal">STRICT</code>が指定されない場合でも、<code class="literal">RETURNING</code>を伴った<code class="command">INSERT</code>/<code class="command">UPDATE</code>/<code class="command">DELETE</code>/<code class="command">MERGE</code>が2行以上を返した時は、エラーとなります。 | ||
| 361 | 354 | なぜなら、どの1行を返すか決定する<code class="literal">ORDER BY</code>のようなオプションが存在しないからです。 | |
| 362 | - 《機械翻訳》<code class="literal">RETURNING</code>を指定した<code class="command">INSERT</code>/<code class="command">UPDATE</code>/<code class="command">DELETE</code>/<code class="command">MERGE</code>に対して、<code class="literal">STRICT</code>が指定されていない場合でも、<span class="application">PL/pgSQL</span>は複数の返された行に対してエラーを報告します。 | ||
| 363 | - これは、どの返された行を返すかを決定するための<code class="literal">ORDER BY</code>などのオプションがないためです。 | ||
| 364 | 355 | </p><p> | |
| 365 | 356 | <span class="original"> | |
| 366 | 357 | If <literal>print_strict_params</literal> is enabled for the function, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments