Skip to content

Commit

Permalink
Add configuration variables to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
woblerr committed May 22, 2021
1 parent f998b94 commit f6e6384
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
Extension for PostgreSQL for collecting statistics about messages in logfile
Extension for PostgreSQL for collecting statistics about messages in logfile.

Configuration variables:
* `logerrors.interval` - Time between writing statistic to buffer (ms). Default of **5s**, max of **60s**;
* `logerrors.intervals_count` - Count of intervals in buffer. Default of **120**, max of **360**. During this count of intervals messages doesn't dropping from statistic;
* `logerrors.excluded_errcodes` - Excluded error codes separated by "**,**".

## Install

The extension must be loaded via `shared_preload_libraries`.

Run psql command:

$ CREATE EXTENSION logerrors;

## Usage

After creating extension you can call pg_log_errors_stats function in psql(without any arguments)
After creating extension you can call `pg_log_errors_stats()` function in psql (without any arguments).

```
postgres=# select * from pg_log_errors_stats();
Expand Down

0 comments on commit f6e6384

Please sign in to comment.