Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[columnar] [Bug] Sequential scan parallel execution OOM #78

Merged
merged 1 commit into from
May 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion columnar/src/backend/columnar/columnar_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ FindNextStripeForParallelWorker(Relation relation,
ScanKeyData scanKey;

ScanKeyInit(&scanKey, Anum_columnar_stripe_storageid,
BTEqualStrategyNumber, F_OIDEQ, Int32GetDatum(storageId));
BTEqualStrategyNumber, F_OIDEQ, UInt64GetDatum(storageId));

Relation columnarStripes = table_open(ColumnarStripeRelationId(), AccessShareLock);

Expand All @@ -1120,6 +1120,8 @@ FindNextStripeForParallelWorker(Relation relation,
*nextHigherStripeId = foundStripeMetadata->id;
break;
}

pfree(foundStripeMetadata);
}
else
{
Expand Down