]> granicus.if.org Git - postgresql/commit
btree: Support parallel index scans.
authorRobert Haas <rhaas@postgresql.org>
Wed, 15 Feb 2017 12:41:14 +0000 (07:41 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 15 Feb 2017 12:41:14 +0000 (07:41 -0500)
commit569174f1be92be93f5366212cc46960d28a5c5cd
treede97bf722598e21b88140728479a288604e6f8f5
parent8569955ee39650a667b9700385e1bc19fbf47069
btree: Support parallel index scans.

This isn't exposed to the optimizer or the executor yet; we'll add
support for those things in a separate patch.  But this puts the
basic mechanism in place: several processes can attach to a parallel
btree index scan, and each one will get a subset of the tuples that
would have been produced by a non-parallel scan.  Each index page
becomes the responsibility of a single worker, which then returns
all of the TIDs on that page.

Rahila Syed, Amit Kapila, Robert Haas, reviewed and tested by
Anastasia Lubennikova, Tushar Ahuja, and Haribabu Kommi.
doc/src/sgml/monitoring.sgml
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtsearch.c
src/backend/access/nbtree/nbtutils.c
src/backend/postmaster/pgstat.c
src/include/access/nbtree.h
src/include/pgstat.h
src/tools/pgindent/typedefs.list