forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit21471f1
committed
Add PgStat_KindInfo.init_shmem_cb
This new callback gives fixed-numbered stats the possibility to takeactions based on the area of shared memory allocated for them.This removes from pgstat_shmem.c any knowledge specific to the typesof fixed-numbered stats, and the initializations happen in their ownfiles. Likeb68b29b, this change is useful to make this area ofthe code more pluggable, so as custom fixed-numbered stats can takeactions after their shared memory area is initialized.Reviewed-by: Bertrand DrouvotDiscussion:https://postgr.es/m/Zot5bxoPYdS7yaoy@paquier.xyz1 parentcc22368 commit21471f1
File tree
9 files changed
+79
-10
lines changed- src
- backend/utils/activity
- include/utils
9 files changed
+79
-10
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
| 357 | + | |
357 | 358 |
| |
358 | 359 |
| |
359 | 360 |
| |
| |||
368 | 369 |
| |
369 | 370 |
| |
370 | 371 |
| |
| 372 | + | |
371 | 373 |
| |
372 | 374 |
| |
373 | 375 |
| |
| |||
382 | 384 |
| |
383 | 385 |
| |
384 | 386 |
| |
| 387 | + | |
385 | 388 |
| |
386 | 389 |
| |
387 | 390 |
| |
| |||
396 | 399 |
| |
397 | 400 |
| |
398 | 401 |
| |
| 402 | + | |
399 | 403 |
| |
400 | 404 |
| |
401 | 405 |
| |
| |||
410 | 414 |
| |
411 | 415 |
| |
412 | 416 |
| |
| 417 | + | |
413 | 418 |
| |
414 | 419 |
| |
415 | 420 |
| |
| |||
424 | 429 |
| |
425 | 430 |
| |
426 | 431 |
| |
| 432 | + | |
427 | 433 |
| |
428 | 434 |
| |
429 | 435 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 |
| |
66 | 74 |
| |
67 | 75 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
78 | 86 |
| |
79 | 87 |
| |
80 | 88 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
87 | 95 |
| |
88 | 96 |
| |
89 | 97 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
254 | 263 |
| |
255 | 264 |
| |
256 | 265 |
| |
|
Lines changed: 11 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
199 |
| - | |
200 | 199 |
| |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
210 | 211 |
| |
211 | 212 |
| |
212 | 213 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
195 | 203 |
| |
196 | 204 |
| |
197 | 205 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
166 | 174 |
| |
167 | 175 |
| |
168 | 176 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
254 | 261 |
| |
255 | 262 |
| |
256 | 263 |
| |
| |||
528 | 535 |
| |
529 | 536 |
| |
530 | 537 |
| |
| 538 | + | |
531 | 539 |
| |
532 | 540 |
| |
533 | 541 |
| |
| |||
536 | 544 |
| |
537 | 545 |
| |
538 | 546 |
| |
| 547 | + | |
539 | 548 |
| |
540 | 549 |
| |
541 | 550 |
| |
| |||
544 | 553 |
| |
545 | 554 |
| |
546 | 555 |
| |
| 556 | + | |
547 | 557 |
| |
548 | 558 |
| |
549 | 559 |
| |
| |||
574 | 584 |
| |
575 | 585 |
| |
576 | 586 |
| |
| 587 | + | |
577 | 588 |
| |
578 | 589 |
| |
579 | 590 |
| |
| |||
632 | 643 |
| |
633 | 644 |
| |
634 | 645 |
| |
| 646 | + | |
635 | 647 |
| |
636 | 648 |
| |
637 | 649 |
| |
| |||
644 | 656 |
| |
645 | 657 |
| |
646 | 658 |
| |
| 659 | + | |
647 | 660 |
| |
648 | 661 |
| |
649 | 662 |
| |
|
0 commit comments
Comments
(0)