Upgrade

You can upgrade PGroonga without recreating PGroonga indexes when new version doesn't have any backward incompatible change. If new version has any backward incompatible change, you need to recreate all PGroonga indexes to upgrade PGroonga.

Here is a list of compatibility:

Incompatible case

Here are steps to upgrade:

  1. Drop all PGroonga indexes.

  2. Drop PGroonga extension.

  3. Upgrade PGroonga binary.

  4. Install PGroonga extension.

  5. Create all PGroonga indexes again.

Here is a SQL that drops all PGroonga indexes and PGroonga extension:

DROP EXTENSION pgroonga CASCADE;

You can upgrade PGroonga binary by package. Or you can upgrade by building new PGroonga and override old PGroonga.

Here is a SQL that install PGroonga extension:

CREATE EXTENSION pgroonga;

Use CREATE INDEX USING pgroonga to create PGroonga indexes.

Compatible case

Here are steps to upgrade:

  1. Disconnect from all databases that use PGroonga.

  2. Upgrade PGroonga binary.

  3. Connect to a database that uses PGroonga.

  4. Upgrade PGroonga extension.

You can upgrade PGroonga binary by package. Or you can upgrade by building new PGroonga and override old PGroonga.

Here is a SQL that upgrades PGroonga:

ALTER EXTENSION pgroonga UPDATE;

See also