Choosing the Right PostgreSQL Index Type

The B-tree handles most queries, but Postgres ships five other index types, and each exists because a B-tree can't do a specific job well.