PostgreSQL Indexing Deep Dive - Choosing the Right Index (opens in new tab)
In the earlier posts of this series, we looked at and how to . A recurring theme in both was: "add an index here." But "add an index" is a bit like saying "use the right tool" — the interesting part is which one. PostgreSQL ships with several index types, each tuned for a different kind of data and query. Picking the wrong one means PostgreSQL quietly ignores your index and goes back to a sequential scan. In this post, we'll walk through the main index types, when each shines, and the special...
Read the original article