Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6393613

Browse files
committed
Fix possible crash with Parallel Bitmap Heap Scan.
If a Parallel Bitmap Heap scan's chain of leftmost descendentsincludes a BitmapOr whose first child is a BitmapAnd, the prior codingwould mistakenly create a non-shared TIDBitmap and then try to performshared iteration.Report by Tomas Vondra. Patch by Dilip Kumar.Discussion:http://postgr.es/m/50e89684-8ad9-dead-8767-c9545bafd3b6@2ndquadrant.com
1 parent7393711 commit6393613

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/backend/optimizer/plan/createplan.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4933,7 +4933,11 @@ bitmap_subplan_mark_shared(Plan *plan)
49334933
bitmap_subplan_mark_shared(
49344934
linitial(((BitmapAnd*)plan)->bitmapplans));
49354935
elseif (IsA(plan,BitmapOr))
4936+
{
49364937
((BitmapOr*)plan)->isshared= true;
4938+
bitmap_subplan_mark_shared(
4939+
linitial(((BitmapOr*)plan)->bitmapplans));
4940+
}
49374941
elseif (IsA(plan,BitmapIndexScan))
49384942
((BitmapIndexScan*)plan)->isshared= true;
49394943
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp