Skip to content

Commit

Permalink
storage: drop pg_trgm on wipe
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Jun 27, 2023
1 parent 7105a94 commit 3e93308
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage/postgres/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e93308

Please sign in to comment.