Type: integer
Default: 10240 (10MB)
Min: 0 (0kB)
Max: 2097151 (2097151kB)
Unit: KB
Context: sighup
Restart: false

When logging_collector is enabled, this parameter determines the maximum size of an individual log file. After this amount of data has been emitted into a log file, a new log file will be created. If this value is specified without units, it is taken as kilobytes. The default is 10 megabytes. Set to zero to disable size-based creation of new log files. This parameter can only be set in the postgresql.conf file or on the server command line.

Recommendations

Default is quite small if you have any extra logging turned on at all. Increase to avoid the creation of additional log segments with hard-to-predict names.

Comments