pgsql: Add a C API for parallel heap scans. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Add a C API for parallel heap scans.
Date
Msg-id E1ZnCga-0007NW-IL@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add a C API for parallel heap scans.

Using this API, one backend can set up a ParallelHeapScanDesc to
which multiple backends can then attach.  Each tuple in the relation
will be returned to exactly one of the scanning backends.  Only
forward scans are supported, and rescans must be carefully
coordinated.

This is not exposed to the planner or executor yet.

The original version of this code was written by me.  Amit Kapila
reviewed it, tested it, and improved it, including adding support for
synchronized scans, per review comments from Jeff Davis.  Extensive
testing of this and related patches was performed by Haribabu Kommi.
Final cleanup of this patch by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ee7ca559fcf404f9a3bd99da85c8f4ea9fbc2e92

Modified Files
--------------
src/backend/access/heap/heapam.c |  244 ++++++++++++++++++++++++++++++++++++--
src/include/access/heapam.h      |    8 +-
src/include/access/relscan.h     |   20 ++++
3 files changed, 261 insertions(+), 11 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Allow a parallel context to relaunch workers.
Next
From: Michael Meskes
Date:
Subject: pgsql: Fix order of arguments in ecpg generated typedef command.