This is a document for PGroonga 1.X. See PGroonga 2.x document when you're using recent PGroonga.
pgroonga.query_log_path
parameterpgroonga.query_log_path
parameter controls the path of query log.
This parameter is meaningless when you don't use pgroonga.command
function. Because query can be executed only via pgroonga.command
function.
If you specify relative path, the path is resolved from $PGDATA
.
You can disable query log output by specifying none
as path.
The default value is none
. It means that query log is disabled by default.
In SQL:
SET pgroonga.query_log_path = path;
In postgresql.conf
:
pgroonga.query_log_path = path
path
is a string value. It means that you need to quote path
value such as 'pgroonga.query.log'
.
PGroonga outputs query log to path
.
Here is an example to output query log to $PGDATA/pgroonga.query.log
:
SET pgroonga.query_log_path = 'pgroonga.query.log';
Here is an example to output query log to /var/log/pgroonga.query.log
:
SET pgroonga.query_log_path = '/var/log/pgroonga.query.log';
Here is an example to disable query log:
SET pgroonga.query_log_path = 'none';