Add backend type to csvlog and optionally log_line_prefix
Peter Eisentraut <peter@eisentraut.org>
Add backend type to csvlog and optionally log_line_prefix The backend type, which corresponds to what pg_stat_activity.backend_type shows, is added as a column to the csvlog and can optionally be added to log_line_prefix using the new %b placeholder. Reviewed-by: Julien Rouhaud <rjuju123@gmail.com> Reviewed-by: Kuntal Ghosh <kuntalghosh.2007@gmail.com> Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com> Reviewed-by: Justin Pryzby <pryzby@telsasoft.com> Discussion: https://www.postgresql.org/message-id/flat/c65e5196-4f04-4ead-9353-6088c19615a3@2ndquadrant.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +19 −1 |
| src/backend/utils/error/elog.c | modified | +28 −0 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +1 −0 |
| src/test/regress/pg_regress.c | modified | +1 −1 |
Documentation touched
Discussion
- backend type in log_line_prefix? 26 messages · 2020-02-13 → 2020-04-01