- Notifications
You must be signed in to change notification settings - Fork5
Commit51adcaa
committed
Add cluster_name GUC which is included in process titles if set.
When running several postgres clusters on one OS instance it's ofteninconveniently hard to identify which "postgres" process belongs towhich postgres instance.Add the cluster_name GUC, whose value will be included as part of theprocess titles if set. With that processes can more easily identifiedusing tools like 'ps'.To avoid problems with encoding mismatches between postgresql.conf,consoles, and individual databases replace non-ASCII chars in the namewith question marks. The length is limited to NAMEDATALEN to make itless likely to truncate important information at the end of thestatus.Thomas Munro, with some adjustments by me and review by a host of people.1 parenta6d488c commit51adcaa
File tree
6 files changed
+86
-7
lines changed- doc/src/sgml
- src
- backend/utils/misc
- include/utils
6 files changed
+86
-7
lines changedLines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4131 | 4131 |
| |
4132 | 4132 |
| |
4133 | 4133 |
| |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
4134 | 4157 |
| |
4135 | 4158 |
| |
4136 | 4159 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
94 | 110 |
| |
95 | 111 |
| |
96 | 112 |
| |
|
Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
| 201 | + | |
201 | 202 |
| |
202 | 203 |
| |
203 | 204 |
| |
| |||
443 | 444 |
| |
444 | 445 |
| |
445 | 446 |
| |
| 447 | + | |
446 | 448 |
| |
447 | 449 |
| |
448 | 450 |
| |
| |||
3261 | 3263 |
| |
3262 | 3264 |
| |
3263 | 3265 |
| |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
3264 | 3277 |
| |
3265 | 3278 |
| |
3266 | 3279 |
| |
| |||
9470 | 9483 |
| |
9471 | 9484 |
| |
9472 | 9485 |
| |
| 9486 | + | |
| 9487 | + | |
| 9488 | + | |
| 9489 | + | |
| 9490 | + | |
| 9491 | + | |
| 9492 | + | |
| 9493 | + | |
| 9494 | + | |
| 9495 | + | |
| 9496 | + | |
| 9497 | + | |
| 9498 | + | |
| 9499 | + | |
| 9500 | + | |
9473 | 9501 |
| |
9474 | 9502 |
| |
9475 | 9503 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
435 | 435 |
| |
436 | 436 |
| |
437 | 437 |
| |
438 |
| - | |
| 438 | + | |
| 439 | + | |
439 | 440 |
| |
440 | 441 |
| |
441 | 442 |
| |
|
Lines changed: 16 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
| |||
264 | 265 |
| |
265 | 266 |
| |
266 | 267 |
| |
267 |
| - | |
268 |
| - | |
269 |
| - | |
| 268 | + | |
270 | 269 |
| |
271 |
| - | |
272 |
| - | |
273 |
| - | |
| 270 | + | |
274 | 271 |
| |
275 | 272 |
| |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
276 | 286 |
| |
277 | 287 |
| |
278 | 288 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
224 | 224 |
| |
225 | 225 |
| |
226 | 226 |
| |
| 227 | + | |
227 | 228 |
| |
228 | 229 |
| |
229 | 230 |
| |
|
0 commit comments
Comments
(0)