Skip to content

JSON Schema Pgaudit

System-wide settings for the pgaudit extension.

Properties

PropertyTypeRequiredDescription
feature_enabledbooleannoEnable pgaudit extension. When enabled, pgaudit extension will be automatically installed.Otherwise, extension will be uninstalled but auditing configurations will be preserved.

Default: false.
logarray[string]noSpecifies which classes of statements will be logged by session audit logging.
log_catalogbooleannoSpecifies that session logging should be enabled in the case where all relations in a statement are in pg_catalog.

Default: true.
log_clientbooleannoSpecifies whether log messages will be visible to a client process such as psql.

Default: false.
log_levelstringnoSpecifies the log level that will be used for log entries.

Allowed values: debug1, debug2, debug3, debug4, debug5, info, notice, warning, log.

Default: log.
log_max_string_lengthintegernoCrop parameters representation and whole statements if they exceed this threshold. A (default) value of -1 disable the truncation.

Min: -1. Max: 102400. Default: -1.
log_nested_statementsbooleannoThis GUC allows to turn off logging nested statements, that is, statements that are executed as part of another ExecutorRun.

Default: true.
log_parameterbooleannoSpecifies that audit logging should include the parameters that were passed with the statement.

Default: false.
log_parameter_max_sizeintegernoSpecifies that parameter values longer than this setting (in bytes) should not be logged, but replaced with .

Default: 0.
log_relationbooleannoSpecifies whether session audit logging should create a separate log entry for each relation (TABLE, VIEW, etc.) referenced in a SELECT or DML statement.

Default: false.
log_rowsbooleannoDefault: false.
log_statementbooleannoSpecifies whether logging will include the statement text and parameters (if enabled).

Default: true.
log_statement_oncebooleannoSpecifies whether logging will include the statement text and parameters with the first log entry for a statement/substatement combination or with every entry.

Default: false.
rolestringnoSpecifies the master role to use for object audit logging.

Max length: 64.
Last updated on