This is a document for PGroonga 2.X. See PGroonga 1.x document when you're using old PGroonga.

pgroonga_check module

Since 1.2.0.

Summary

pgroonga_check module checkes PGroonga database consistency on startup. If PGroonga database is broken, it tries to recover the database.

Configuration

You need to add pgroonga_check to shared_preload_libraries in postgresql.conf:

shared_preload_libraries = 'pgroonga_check'

You need to restart your PostgreSQL to apply the change.

Usage

You don't do anything. pgroonga_check module checks all PGroonga databases on PostgreSQL startup. If pgroonga_check module finds any broken PGroonga databases, it tries to recover them automatically.

If it can't recover, it removes all unrecoverable PGroonga databases automatically. There are no unrecoverable data in PGroonga databases. You can recover PGroonga databases by running REINDEX manually.