forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0f61727
committed
Fixes for query_id feature
Ignore parallel workers in pg_stat_statements Oversight in4f0b096 which exposed queryid in parallel workers. Counters are aggregated by the main backend process so parallel workers would report duplicated activity, and could also report activity for the wrong entry as they are only aware of the top level queryid.Fix thinko in pg_stat_get_activity when retrieving the queryid.Remove unnecessary call to pgstat_report_queryid().Reported-by: Amit Kapila, Andres Freund, Thomas MunroDiscussion:https://postgr.es/m/20210408051735.lfbdzun5zdlax5gd@alap3.anarazel.de p634GTSOqnDW86Owrn6qDAVosC5dJjXjp7BMfc5Gz1Q@mail.gmail.comAuthor: Julien Rouhaud1 parent5844c23 commit0f61727
File tree
3 files changed
+4
-3
lines changed- contrib/pg_stat_statements
- src/backend
- executor
- utils/adt
3 files changed
+4
-3
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
| 50 | + | |
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| |||
278 | 279 |
| |
279 | 280 |
| |
280 | 281 |
| |
| 282 | + | |
281 | 283 |
| |
282 |
| - | |
| 284 | + | |
283 | 285 |
| |
284 | 286 |
| |
285 | 287 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1426 | 1426 |
| |
1427 | 1427 |
| |
1428 | 1428 |
| |
1429 |
| - | |
1430 | 1429 |
| |
1431 | 1430 |
| |
1432 | 1431 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
917 | 917 |
| |
918 | 918 |
| |
919 | 919 |
| |
920 |
| - | |
| 920 | + | |
921 | 921 |
| |
922 | 922 |
| |
923 | 923 |
| |
|
0 commit comments
Comments
(0)