mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
4eb50a146e
The PostgreSQL Workload Analyzer is performance tool for PostgreSQL 9.4 and later, allowing to collect, aggregate and purge statistics on a PostgreSQL instance from various sources. It is implemented as a background worker. pg_qualstats, providing data about predicates, i.e. where clauses
25 lines
745 B
Plaintext
25 lines
745 B
Plaintext
To activate powa-archvist on your PostgreSQL server, add 'powa' to the list of
|
|
shared_preload_libraries in $PGDATA/postgresql.conf:
|
|
|
|
shared_preload_libraries = 'pg_stat_statements,powa'
|
|
track_io_timing = on
|
|
|
|
Also, create the powa database and add extensions
|
|
|
|
createdb powa
|
|
psql -d powa -c "
|
|
CREATE EXTENSION pg_stat_statements;
|
|
CREATE EXTENSION btree_gist;
|
|
CREATE EXTENSION powa;
|
|
"
|
|
|
|
After this, restart postgresql to start the background worker.
|
|
|
|
See http://powa.readthedocs.org/en/latest/powa-archivist/installation.html#id1
|
|
for detailed installation instructions.
|
|
|
|
Optionally, but warmly recommended, is the use of databases/pg_qualstats and
|
|
databases/pg_stat_kcache together with powa.
|
|
|
|
Use the databases/powa-web port to visualize the data.
|