lss602726449 opened a new pull request, #1707:
URL: https://github.com/apache/cloudberry/pull/1707

   ## Summary
   - Restore `pgstat_report_resgroup()` calls that were commented out during 
PG16 merge (`MERGE16_FIXME`), so `pg_stat_activity` correctly shows 
`rsgid`/`rsgname`
   - Add `pgstat_report_resgroup()` in `check_and_unassign_from_resgroup()` to 
restore `st_rsgid` after Assign-to-Bypass transition, fixing 
`rsgname='unknown'` in `pg_stat_activity`
   - Fix `is_session_in_group()` plpython function: PG16 removed 
`con{session_id}` from process titles, breaking `ps | grep`. Replaced with 
`gp_stat_activity JOIN gp_segment_configuration`
   - Remove duplicate `totalExecuted++` in `check_and_unassign_from_resgroup()` 
that caused double-counting when a query transitions from Assign to Bypass state
   
   ## Test plan
   - [ ] Run `resgroup_move_query` isolation2 test — verify `rsgname` shows 
correctly instead of `unknown`
   - [ ] Run `resgroup_bypass` isolation2 test — verify `num_executed` delta is 
1 (not 2)
   - [ ] Run `resgroup_auxiliary_tools_v2` isolation2 test — verify 
`is_session_in_group` function creates without error
   - [ ] Run `resgroup_syntax` isolation2 test — verify `is_session_in_group` 
returns correct results


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to