When Postgres ignores your index

An index on a column is not a promise that Postgres will use it. See why a value in most rows is read the slow way on purpose, and how a stale picture of the table picks the wrong plan.

Checking your access…