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

Don't walk into Gather subplans if there's no local scan #56

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

bonnefoa
Copy link
Collaborator

@bonnefoa bonnefoa commented Sep 6, 2024

Parallel queries executed without the leader participation won't execute the sub nodes in Gather/GatherMerge, which is represented by need_to_scan_locally=false. Since the nodes won't be executed, we won't have a traced plan and there's no value to generate spans from those nodes.

We just need to skip the whole subtree in those cases.

Fixes #54

Parallel queries executed without the leader participation won't execute
the sub nodes in the Gather/GatherMerge, which is represented by
need_to_scan_locally=false. Since the nodes won't be executed, we won't
have a traced plan and there's no value to generate spans from those
nodes. Just skip the whole subtree in those cases.

Fixes #54
@bonnefoa bonnefoa merged commit 2b481ac into main Sep 6, 2024
4 checks passed
@bonnefoa bonnefoa deleted the leaderless-parallel branch September 6, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Segmentation fault in single-copy mode
1 participant