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

15.2. どのような時にパラレルクエリは使用できるのか? #

<title>When Can Parallel Query Be Used?</title>

There are several settings that can cause the query planner not to generate a parallel query plan under any circumstances. In order for any parallel query plans whatsoever to be generated, the following settings must be configured as indicated. どのような状況においても、プランナにパラレルクエリプランを生成させなくしてしまう設定があります。 とにかくパラレルクエリプランを生成させるためには、次に示すように設定しなければなりません。

In addition, the system must not be running in single-user mode. Since the entire database system is running as a single process in this situation, no background workers will be available. 加えて、システムはシングルユーザモードで動いていてはいけません。 この場合はデータベースシステム全体が一つのプロセスとして動いているので、バックグラウンドワーカーが使えません。

Even when it is in general possible for parallel query plans to be generated, the planner will not generate them for a given query if any of the following are true: 一般にパラレルクエリプランが生成可能な場合でも、以下のうち一つでも真であると、プランナはクエリに対するパラレルクエリプランを生成しません。

Even when parallel query plan is generated for a particular query, there are several circumstances under which it will be impossible to execute that plan in parallel at execution time. If this occurs, the leader will execute the portion of the plan below the <literal>Gather</literal> node entirely by itself, almost as if the <literal>Gather</literal> node were not present. This will happen if any of the following conditions are met: あるクエリに対してパラレルクエリプランが生成された場合でも、実行時にプランを並列に実行できないような状況があります。 この状況においては、まるでGatherノードが存在しなかったかのように、リーダーはGatherノード以下部分のプランのすべてを自分自身で実行します。 これは、以下の条件のどれかが当てはまると起こります。