Introduction
We want to find data quickly in a database. Sequential scan and index scan are two ways to look for data.
When you want to read all rows in a table.
When you want to find a few rows using a search condition.
When the table is small and reading all rows is fast.
When the table is large but you have an index on the searched column.
When you want to understand how PostgreSQL finds data.