mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Add header comments to execParallel.c and nodeGather.c.
Patch by me, per a note from Simon Riggs. Reviewed by Amit Kapila and Amit Langote.
This commit is contained in:
parent
e4a618aa1e
commit
1a219fa15b
@ -6,6 +6,14 @@
|
||||
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* This file contains routines that are intended to support setting up,
|
||||
* using, and tearing down a ParallelContext from within the PostgreSQL
|
||||
* executor. The ParallelContext machinery will handle starting the
|
||||
* workers and ensuring that their state generally matches that of the
|
||||
* leader; see src/backend/access/transam/README.parallel for details.
|
||||
* However, we must save and restore relevant executor state, such as
|
||||
* any ParamListInfo associated with the query, buffer usage info, and
|
||||
* the actual plan to be passed down to the worker.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* src/backend/executor/execParallel.c
|
||||
|
@ -6,6 +6,20 @@
|
||||
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* A Gather executor launches parallel workers to run multiple copies of a
|
||||
* plan. It can also run the plan itself, if the workers are not available
|
||||
* or have not started up yet. It then merges all of the results it produces
|
||||
* and the results from the workers into a single output stream. Therefore,
|
||||
* it will normally be used with a plan where running multiple copies of the
|
||||
* same plan does not produce duplicate output, such as PartialSeqScan.
|
||||
*
|
||||
* Alternatively, a Gather node can be configured to use just one worker
|
||||
* and the single-copy flag can be set. In this case, the Gather node will
|
||||
* run the plan in one worker and will not execute the plan itself. In
|
||||
* this case, it simply returns whatever tuples were returned by the worker.
|
||||
* If a worker cannot be obtained, then it will run the plan itself and
|
||||
* return the results. Therefore, a plan used with a single-copy Gather
|
||||
* node need not be parallel-aware.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* src/backend/executor/nodeGather.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user