Upgrading Vector Plus v0

Vector Plus has no ALTER EXTENSION edb_vectorplus UPDATE path. Each version reads only its own on-disk index format, so you drop and recreate the extension to upgrade.

  1. Check the installed version in each database:

    SELECT extversion FROM pg_extension WHERE extname = 'edb_vectorplus';
  2. Install the new package.

  3. In each database where the extension is enabled, drop and recreate the extension. CASCADE drops the ivfplus indexes.

    DROP EXTENSION edb_vectorplus CASCADE;
    CREATE EXTENSION edb_vectorplus;
  4. Recreate your ivfplus indexes.

If you skip step 3, an index built by an earlier version fails with ivfplus index has an incompatible on-disk version -- REINDEX until it's rebuilt.