Commit b8fdee7
committed
Add %P to log_line_prefix for parallel group leader
This is useful for monitoring purposes with log parsing. Similarly to
pg_stat_activity, the leader's PID is shown only for active parallel
workers, minimizing the log footprint for the leaders as the equivalent
shared memory field is set as long as a backend is alive.
Author: Justin Pryzby
Reviewed-by: Álvaro Herrera, Michael Paquier, Julien Rouhaud, Tom Lane
Discussion: https://postgr.es/m/20200315111831.GA21492@telsasoft.com1 parent f44b9b6 commit b8fdee7
File tree
3 files changed
+47
-1
lines changed- doc/src/sgml
- src/backend/utils
- error
- misc
3 files changed
+47
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6694 | 6694 | | |
6695 | 6695 | | |
6696 | 6696 | | |
| 6697 | + | |
| 6698 | + | |
| 6699 | + | |
| 6700 | + | |
| 6701 | + | |
| 6702 | + | |
6697 | 6703 | | |
6698 | 6704 | | |
6699 | 6705 | | |
| |||
7026 | 7032 | | |
7027 | 7033 | | |
7028 | 7034 | | |
7029 | | - | |
| 7035 | + | |
7030 | 7036 | | |
7031 | 7037 | | |
7032 | 7038 | | |
| |||
7056 | 7062 | | |
7057 | 7063 | | |
7058 | 7064 | | |
| 7065 | + | |
7059 | 7066 | | |
7060 | 7067 | | |
7061 | 7068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2448 | 2448 | | |
2449 | 2449 | | |
2450 | 2450 | | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
2451 | 2474 | | |
2452 | 2475 | | |
2453 | 2476 | | |
| |||
2836 | 2859 | | |
2837 | 2860 | | |
2838 | 2861 | | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
2839 | 2877 | | |
2840 | 2878 | | |
2841 | 2879 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
540 | 541 | | |
541 | 542 | | |
542 | 543 | | |
| |||
0 commit comments