diff --git a/storage/postgres/client.go b/storage/postgres/client.go index a03714027..771da81a3 100644 --- a/storage/postgres/client.go +++ b/storage/postgres/client.go @@ -309,6 +309,10 @@ func (c *Client) listIndexerMaterializedViews(ctx context.Context) ([]string, er // Wipe removes all contents of the database. func (c *Client) Wipe(ctx context.Context) error { + if _, err := c.pool.Exec(ctx, "DROP EXTENSION IF EXISTS pg_trgm CASCADE;"); err != nil { + return err + } + tables, err := c.listIndexerTables(ctx) if err != nil { return err