10000 Make it so subqueries do not rewrite top-level queryId by Medvecrab · Pull Request #78 · postgrespro/pg_wait_sampling · GitHub
[go: up one dir, main page]

Skip to content

Make it so subqueries do not rewrite top-level queryId #78

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

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

Medvecrab
Copy link
Contributor

Also remove if(MyProc) checks

@Medvecrab Medvecrab requested a review from shinderuk June 14, 2024 14:15
Copy link
Contributor
@shinderuk shinderuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Medvecrab Medvecrab force-pushed the track_top_level_queryid branch from 1c9e00f to f4fbcce Compare June 17, 2024 07:18
@Medvecrab Medvecrab force-pushed the track_top_level_queryid branch from f4fbcce to b2ade62 Compare June 17, 2024 08:47
PlannedStmt *result;
int i = MyProc - ProcGlobal->allProcs;
if (nesting_level == 0)
pgws_proc_queryids[i] = parse->queryId;

/* Invoke original hook if needed */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this comment below, atop if (planner_hook_next).

@Medvecrab Medvecrab force-pushed the track_top_level_queryid branch from b2ade62 to 0b5c61b Compare June 17, 2024 10:29
@shinderuk shinderuk merged commit 3fdca70 into master Jun 17, 2024
2 checks passed
@shinderuk shinderuk deleted the track_top_level_queryid branch June 17, 2024 11:04
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.

2 participants
0