pgsql: Fix possible crash with Parallel Bitmap Heap Scan.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix possible crash with Parallel Bitmap Heap Scan.
Date: 2017-10-13 19:09:12
Message-ID: E1e35Ka-0001do-8e@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6393613b6a1e0feae3d22af608397b252cee5b58

Modified Files
--------------
src/backend/optimizer/plan/createplan.c | 4 ++++
1 file changed, 4 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-10-13 19:15:52 pgsql: Force "restrict" not to be used when compiling with xlc.
Previous Message Andres Freund 2017-10-13 18:24:05 Re: [HACKERS] pgsql: Improve performance of SendRowDescriptionMessage.