-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added the missing log format params
Signed-off-by: Sebastian Webber <[email protected]>
- Loading branch information
1 parent
a782291
commit bcffadb
Showing
7 changed files
with
72 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package category | ||
|
||
var ( | ||
// PGBadgerConfig contains the extra category, that contains pgbadger's log configuration | ||
PGBadgerConfig = SliceOutput{ | ||
Name: "log_config", | ||
Description: "Logging configuration for pgbadger", | ||
Parameters: []ParamSliceOutput{ | ||
ParamSliceOutput{Format: "bool", Name: "logging_collector", Value: "on"}, | ||
ParamSliceOutput{Format: "bool", Name: "log_checkpoints", Value: "on"}, | ||
ParamSliceOutput{Format: "bool", Name: "log_connections", Value: "on"}, | ||
ParamSliceOutput{Format: "bool", Name: "log_disconnections", Value: "on"}, | ||
ParamSliceOutput{Format: "bool", Name: "log_lock_waits", Value: "on"}, | ||
ParamSliceOutput{Format: "int", Name: "log_temp_files", Value: "0"}, | ||
ParamSliceOutput{Format: "string", Name: "lc_messages", Value: "C"}, | ||
ParamSliceOutput{Format: "string", Name: "log_min_duration_statement", Value: "10s", Comment: "Adjust the minimum time to collect the data"}, | ||
ParamSliceOutput{Format: "int", Name: "log_autovacuum_min_duration", Value: "0"}, | ||
}, | ||
} | ||
|
||
// LogOptions contains an option to the log configuration | ||
LogOptions = map[string]SliceOutput{ | ||
"stderr": SliceOutput{ | ||
Name: "stder_config", | ||
Description: "STDERR Configuration", | ||
Parameters: []ParamSliceOutput{ | ||
ParamSliceOutput{Format: "string", Name: "log_destination", Value: "stder"}, | ||
ParamSliceOutput{Format: "string", Name: "log_line_prefix", Value: "%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h "}, | ||
}, | ||
}, | ||
"syslog": SliceOutput{ | ||
Name: "syslog_config", | ||
Description: "SYSLOG Configuration", | ||
Parameters: []ParamSliceOutput{ | ||
ParamSliceOutput{Format: "string", Name: "log_destination", Value: "syslog"}, | ||
ParamSliceOutput{Format: "string", Name: "log_line_prefix", Value: "user=%u,db=%d,app=%a,client=%h "}, | ||
ParamSliceOutput{Format: "string", Name: "syslog_facility", Value: "LOCAL0"}, | ||
ParamSliceOutput{Format: "string", Name: "syslog_ident", Value: "postgres"}, | ||
}, | ||
}, | ||
"csvlog": SliceOutput{ | ||
Name: "csv_config", | ||
Description: "CSV Configuration", | ||
Parameters: []ParamSliceOutput{ | ||
ParamSliceOutput{Format: "string", Name: "log_destination", Value: "csvlog"}, | ||
}, | ||
}, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package defaults | ||
|
||
const ( | ||
// PGVersion is the current stable version of PostgreSQL | ||
PGVersion = "13" | ||
|
||
// PGVersionF is the current stable version of PostgreSQL - on the float Format | ||
PGVersionF = 13.1 | ||
) |