Skip to content

Fix parallel hash span creation#88

Open
blast-hardcheese wants to merge 1 commit into
DataDog:mainfrom
wandercom:fix-parallel-hash-span
Open

Fix parallel hash span creation#88
blast-hardcheese wants to merge 1 commit into
DataDog:mainfrom
wandercom:fix-parallel-hash-span

Conversation

@blast-hardcheese

Copy link
Copy Markdown

What does this PR do?

Avoids dereferencing a missing traced child when creating a Hash span. When that happens, the span uses the parent start as the available bound.

Motivation

We saw repeated segfaults from sampled parallel hash plans. A parallel worker can have Hash instrumentation even when its child did not pass through the tracing wrapper in that worker.

Thanks for maintaining pg_tracing. It has been very useful for us.

Additional Notes

Adds a regression test for the parallel hash case. PG17 pgindent and all 27 regression tests pass.

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.

1 participant