Sequential scan
A sequential scan is a query plan step that reads every row of a table in physical order, ignoring any index.
A sequential scan, shown as Seq Scan in PostgreSQL plans, is a plan step that reads every row of a table in physical order. Any WHERE condition appears as a Filter on the node, so the scan still visits all rows.
It is not always a problem. The PostgreSQL documentation notes that sequential scans are often the right choice when a query needs most of a table or the table is very small. It becomes a concern when a large table is scanned to find a few rows, which usually means a missing or unusable index.
You see it in an EXPLAIN plan. On MySQL, SQLEye also shows a “No index used” marker on a captured query when the server reports it. See Explain.
SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.