forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit790fbda
committed
Enhance pg_log_backend_memory_contexts() for auxiliary processes.
Previously pg_log_backend_memory_contexts() could request tolog the memory contexts of backends, but not of auxiliary processessuch as checkpointer. This commit enhances the function so thatit can also send the request to auxiliary processes. It's useful tolook at the memory contexts of those processes for debugging purposeand better understanding of the memory usage pattern of them.Note that pg_log_backend_memory_contexts() cannot send the requestto logger or statistics collector. Because this logging requestmechanism is based on shared memory but those processes aren'tconnected to that.Author: Bharath RupireddyReviewed-by: Vignesh C, Kyotaro Horiguchi, Fujii MasaoDiscussion:https://postgr.es/m/CALj2ACU1nBzpacOK2q=a65S_4+Oaz_rLTsU1Ri0gf7YUmnmhfQ@mail.gmail.com1 parent85c61ba commit790fbda
File tree
9 files changed
+65
-15
lines changed- doc/src/sgml
- src
- backend
- postmaster
- utils/adt
- test/regress
- expected
- sql
9 files changed
+65
-15
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25421 | 25421 |
| |
25422 | 25422 |
| |
25423 | 25423 |
| |
25424 |
| - | |
| 25424 | + | |
| 25425 | + | |
| 25426 | + | |
25425 | 25427 |
| |
25426 | 25428 |
| |
25427 | 25429 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
577 | 577 |
| |
578 | 578 |
| |
579 | 579 |
| |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
580 | 584 |
| |
581 | 585 |
| |
582 | 586 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
| |||
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 |
| |
47 | 52 |
| |
48 | 53 |
| |
|
Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
| |||
861 | 862 |
| |
862 | 863 |
| |
863 | 864 |
| |
864 |
| - | |
865 |
| - | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
866 | 868 |
| |
867 | 869 |
| |
868 | 870 |
| |
| |||
875 | 877 |
| |
876 | 878 |
| |
877 | 879 |
| |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
878 | 884 |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
| |||
200 | 201 |
| |
201 | 202 |
| |
202 | 203 |
| |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
203 | 208 |
| |
204 | 209 |
| |
205 | 210 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
306 | 306 |
| |
307 | 307 |
| |
308 | 308 |
| |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
309 | 313 |
|
Lines changed: 26 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
163 |
| - | |
| 163 | + | |
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
170 |
| - | |
171 |
| - | |
172 |
| - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
| 179 | + | |
179 | 180 |
| |
180 | 181 |
| |
181 | 182 |
| |
182 | 183 |
| |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 |
| - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
190 | 204 |
| |
191 | 205 |
| |
192 | 206 |
| |
| |||
199 | 213 |
| |
200 | 214 |
| |
201 | 215 |
| |
202 |
| - | |
| 216 | + | |
203 | 217 |
| |
204 | 218 |
| |
205 | 219 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
150 | 157 |
| |
151 | 158 |
| |
152 | 159 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 |
| |
45 | 48 |
| |
46 | 49 |
| |
|
0 commit comments
Comments
(0)