From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add a C API for parallel heap scans. |
Date: | 2015-10-16 21:37:12 |
Message-ID: | E1ZnCga-0007NW-IL@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Meskes | 2015-10-18 08:17:33 | pgsql: Fix order of arguments in ecpg generated typedef command. |
Previous Message | Robert Haas | 2015-10-16 21:24:31 | pgsql: Allow a parallel context to relaunch workers. |