Add %P to log_line_prefix for parallel group leader
Michael Paquier <michael@paquier.xyz>
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.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +8 −1 |
| src/backend/utils/error/elog.c | modified | +38 −0 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +1 −0 |
Documentation touched
Discussion
- expose parallel leader in CSV and log_line_prefix 37 messages · 2020-03-15 → 2020-08-03