Closed shinderuk closed 1 month ago
This issue is consequence that queryId is set for upper-level query but cleared by the first completed subquery.
Should pg_wait_sampling track nesting level like pg_stat_statements does?
Yeah, definitely in perspective. But now it doesn't support nested levels.
Thanks for this buggy case. It's a good augment to the issues around queryId for nested queries described in https://github.com/postgrespro/pg_wait_sampling/issues/43 .
Fixed in v1.1.6
Here is a demo using two sessions distinguished with indentation:
Another example with extra debug output:
Should pg_wait_sampling track nesting level like pg_stat_statements does?