Fix possible crash with Parallel Bitmap Heap Scan.

Robert Haas <rhaas@postgresql.org>

Commit: 6393613b6a1e0feae3d22af608397b252cee5b58
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-10-13T19:02:45Z
Releases: 11.0
Fix possible crash with Parallel Bitmap Heap Scan.

If a Parallel Bitmap Heap scan's chain of leftmost descendents
includes a BitmapOr whose first child is a BitmapAnd, the prior coding
would mistakenly create a non-shared TIDBitmap and then try to perform
shared iteration.

Report by Tomas Vondra.  Patch by Dilip Kumar.

Discussion: http://postgr.es/m/50e89684-8ad9-dead-8767-c9545bafd3b6@2ndquadrant.com

Files

PathChange+/−
src/backend/optimizer/plan/createplan.c modified +4 −0

Discussion