This is a document for PGroonga 2.X and 3.X. See PGroonga 1.x document when you're using old PGroonga.

pgroonga.query_log_rotate_threshold_size parameter

Since 3.2.3.

Summary

pgroonga.query_log_rotate_threshold_size parameter controls the rotation of query log.

Specifies threshold for query log rotation. Query log file is rotated when query 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 query logging is not enabled with the pgroonga.query_log_path parameter.

Syntax

In SQL:

SET pgroonga.query_log_rotate_threshold_size = size;

In postgresql.conf:

pgroonga.query_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.

Usage

Here is an example to specify 10 MiB:

pgroonga.query_log_rotate_threshold_size = 10MB

See also