From 569174f1be92be93f5366212cc46960d28a5c5cd Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 15 Feb 2017 07:41:14 -0500 Subject: 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. --- src/include/pgstat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/pgstat.h') diff --git a/src/include/pgstat.h b/src/include/pgstat.h index de8225b9890..8b710ecb24e 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -780,6 +780,7 @@ typedef enum { WAIT_EVENT_BGWORKER_SHUTDOWN = PG_WAIT_IPC, WAIT_EVENT_BGWORKER_STARTUP, + WAIT_EVENT_BTREE_PAGE, WAIT_EVENT_EXECUTE_GATHER, WAIT_EVENT_MQ_INTERNAL, WAIT_EVENT_MQ_PUT_MESSAGE, -- cgit v1.2.3