Re: Parallel bitmap heap scan
Dilip Kumar <dilipbalaut@gmail.com>
From: Dilip Kumar <dilipbalaut@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Amit Kapila <amit.kapila16@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2017-01-04T07:02:09Z
Lists: pgsql-hackers
Attachments
- hash-support-alloc-free-v6.patch (application/octet-stream) patch v6
- parallel-bitmap-heap-scan-v6.patch (application/octet-stream) patch v6
- (unnamed) (text/plain)
On Mon, Dec 26, 2016 at 3:14 PM, Dilip Kumar <dilipbalaut@gmail.com> wrote: > Other the another option is, that we can always make caller to provide > an allocator. But this way every new user for simple hash need to take > care of having allocator. > > What is your opinion? Attached is the new version of the patch which implements it the way I described. > > >>This also needs docs, including a warning that just >> using an allocator in shared memory does *NOT* allow the hash table to be >> used in shared memory in the general case. > > Make sense. Added the Warning. I have also fixed some bug in parallel bitmap heap scan (path.parallel_workers was not initialised before calling cost_bitmap_heap_scan in some cases, so it was taking the uninitialized value). Patch attached. -- Regards, Dilip Kumar EnterpriseDB: http://www.enterprisedb.com
Commits
-
Pass DSA_ALLOC_HUGE when allocating a shared TIDBitmap.
- a171f01501e1 10.0 landed
-
Support parallel bitmap heap scans.
- f35742ccb7aa 10.0 landed
-
tidbitmap: Support shared iteration.
- 98e6e89040a0 10.0 landed
-
Shut down Gather's children before shutting down Gather itself.
- acf555bc53ac 10.0 landed
-
Revise the way the element allocator for a simplehash is specified.
- c3c4f6e1740b 10.0 cited
-
Refactor bitmap heap scan estimation of heap pages fetched.
- da08a6598973 10.0 landed
-
Use more efficient hashtable for tidbitmap.c to speed up bitmap scans.
- 75ae538bc316 10.0 cited