forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit28de66c
committed
Rename some pgstats callbacks related to flush of entries
The two callbacks have_fixed_pending_cb and flush_fixed_cb have beenintroduced infc415ed to provide a way for fixed-numberedstatistics to control the flush of their data. These are renamed torespectively have_static_pending_cb and flush_static_cb. Therestriction that these only apply to fixed-numbered stats is removed.A follow-up patch will make use of them for backend statistics. Thisstats kind is variable-numbered, and patches are under discussion totrack WAL data for IO and backend stats which cannot usePgStat_EntryRef->pending as pending data would be touched in criticalsections, where no memory allocation can happen.Per discussion with Andres Freund.Author: Bertrand DrouvotReviewed-by: Michael PaquierDiscussion:https://postgr.es/m/66efowskppsns35v5u2m7k4sdnl7yoz5bo64tdjwq7r5lhplrz@y7dme5xwh2r51 parent60c513f commit28de66c
File tree
2 files changed
+30
-33
lines changed- src
- backend/utils/activity
- include/utils
2 files changed
+30
-33
lines changedLines changed: 13 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
437 | 437 |
| |
438 | 438 |
| |
439 | 439 |
| |
440 |
| - | |
441 |
| - | |
| 440 | + | |
| 441 | + | |
442 | 442 |
| |
443 | 443 |
| |
444 | 444 |
| |
| |||
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
458 |
| - | |
459 |
| - | |
| 458 | + | |
| 459 | + | |
460 | 460 |
| |
461 | 461 |
| |
462 | 462 |
| |
| |||
474 | 474 |
| |
475 | 475 |
| |
476 | 476 |
| |
477 |
| - | |
478 |
| - | |
| 477 | + | |
| 478 | + | |
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
| |||
713 | 713 |
| |
714 | 714 |
| |
715 | 715 |
| |
716 |
| - | |
| 716 | + | |
717 | 717 |
| |
718 | 718 |
| |
719 | 719 |
| |
720 | 720 |
| |
721 | 721 |
| |
722 | 722 |
| |
723 |
| - | |
724 |
| - | |
725 |
| - | |
726 |
| - | |
727 |
| - | |
728 |
| - | |
| 723 | + | |
729 | 724 |
| |
730 | 725 |
| |
731 |
| - | |
| 726 | + | |
732 | 727 |
| |
733 | 728 |
| |
734 | 729 |
| |
| |||
789 | 784 |
| |
790 | 785 |
| |
791 | 786 |
| |
792 |
| - | |
| 787 | + | |
793 | 788 |
| |
794 | 789 |
| |
795 |
| - | |
| 790 | + | |
796 | 791 |
| |
797 | 792 |
| |
798 | 793 |
| |
799 | 794 |
| |
800 | 795 |
| |
801 | 796 |
| |
802 |
| - | |
803 |
| - | |
804 |
| - | |
805 |
| - | |
806 |
| - | |
807 |
| - | |
| 797 | + | |
808 | 798 |
| |
809 | 799 |
| |
810 |
| - | |
| 800 | + | |
811 | 801 |
| |
812 | 802 |
| |
813 | 803 |
| |
|
Lines changed: 17 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
159 |
| - | |
160 |
| - | |
| 159 | + | |
| 160 | + | |
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
| |||
260 | 260 |
| |
261 | 261 |
| |
262 | 262 |
| |
263 |
| - | |
| 263 | + | |
| 264 | + | |
264 | 265 |
| |
265 | 266 |
| |
266 | 267 |
| |
| |||
289 | 290 |
| |
290 | 291 |
| |
291 | 292 |
| |
292 |
| - | |
293 |
| - | |
294 |
| - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
295 | 298 |
| |
296 |
| - | |
| 299 | + | |
297 | 300 |
| |
298 | 301 |
| |
299 |
| - | |
300 |
| - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
301 | 308 |
| |
302 |
| - | |
| 309 | + | |
303 | 310 |
| |
304 | 311 |
| |
305 | 312 |
| |
|
0 commit comments
Comments
(0)