pg-index-health is a Java library for analyzing and maintaining indexes and tables health in Postgresql databases.
pg-index-health is a Java library for analyzing and maintaining indexes and tables health in PostgreSQL databases.
Compatibility with PostgreSQL versions 9.6, 10 and 11 is no longer guaranteed, but it is very likely.
We focus only on the currently maintained versions of PostgreSQL.
For more information please see PostgreSQL Versioning Policy.
Supports Java 11 and above
For Java 8 compatible version take a look at release 0.7.0 and lower
pg-index-health allows you to detect the following problems:
For raw sql queries see pg-index-health-sql project.
pg_index_health utilizes the Cumulative Statistics System
(formerly known as PostgreSQL's statistics collector).
You can call pg_stat_reset()
on each host to reset all statistics counters for the current database to zero
but the best way to do it is to use DatabaseManagement::resetStatistics() method.
Using Gradle:
implementation 'io.github.mfvanek:pg-index-health:0.10.3'
implementation("io.github.mfvanek:pg-index-health:0.10.3")
Using Maven:
<dependency>
<groupId>io.github.mfvanek</groupId>
<artifactId>pg-index-health</artifactId>
<version>0.10.3</version>
</dependency>
There are three main scenarios of using pg-index-health in your projects:
All these cases are covered with examples in the pg-index-health-demo project.
There is a Spring Boot starter pg-index-health-test-starter
for unit/integration testing as well.
More examples you can find in pg-index-health-spring-boot-demo project.
pg_analyse - a set of tools to gather useful information from PostgreSQL, written in Python, with command line interface.
Supported by JetBrains with Licenses for Open Source Development