This is a document for PGroonga 2.X and 3.X. See PGroonga 1.x document when you're using old PGroonga.
pgroonga.log_rotate_threshold_size
parameterSince 3.2.3.
pgroonga.log_rotate_threshold_size
parameter controls the rotation of PGroonga's log.
Specifies threshold for PGroonga's log rotation. PGroonga's log file is rotated when log file size is larger than or equals to the threshold.
The default is 0
. It means that that this does not rotate.
This parameter is meaningless if you do not enable PGroonga's log with pgroonga.log_type = file
.
In SQL:
SET pgroonga.log_rotate_threshold_size = size;
In postgresql.conf
:
pgroonga.log_rotate_threshold_size = size;
size
is a size value. The default unit is bytes. You can change unit by specify suffix such as MB
for MiB.
Here is an example to specify 10 MiB:
pgroonga.log_rotate_threshold_size = 10MB