Paste a plan node type and get what it implies: what to check on it, what not to conclude, and the commands that produce each plan format.
16 node kinds
Paste a node type from a plan, or pick one from the list.
Classified with the same function the plan inspector uses, so this page explains exactly what that tool would have decided about the node.
Reads every row in the table. Correct and fastest for a small table or a query returning most of it; a problem on a large table with a selective filter, which usually means a missing or unusable index.
Compare the rows returned against the rows in the table. Returning most of them means this is the right plan and an index would be slower. Returning a small fraction of a large table means either no usable index exists, or the filter cannot use one — a function applied to the column, a type mismatch, or a leading wildcard in a LIKE.
That it needs an index. Replacing every sequential scan with an index is how a table ends up with a dozen indexes that are maintained on every write and chosen by the planner for none of them.
Reference material about plan shapes, not advice about your database. Nothing here is executed, no query is run and no database is contacted — and no node kind is good or bad on its own: each is the planner’s correct choice for some distribution of data, which is why they all exist. To read a real plan, use the query plan inspector, which computes the self time and loop multiplication this page tells you to look for.
Query Plan Node Reference runs entirely on your device — this is static reference material and nothing you type here leaves the page.
You’re on the Free plan. Compare plans
A plan is read under time pressure, usually during an incident, and the question is never what a bitmap heap scan is in the abstract — it is whether the one in front of you is the problem. So the lookup comes first: paste the node type as the database wrote it and get what it implies, classified by the same function the plan inspector uses.
The reference leads with judgement rather than definition, because the definitions are in the manual and the judgement is what people lack. A sequential scan is not a problem: on a small table or a query returning most of the rows it is the correct and fastest choice, and replace every Seq Scan with an index is how a database ends up with fifteen indexes it maintains on every write and uses on none.
An index scan is not automatically good either. Two reads per row means it loses to a sequential scan once it would match much of the table, which is exactly why the planner switches between them — and why an index scan repeated forty thousand times inside a nested loop is slower than one sequential scan while looking like a small number in the plan.
No. On a small table, or for a query returning most of the rows, it is the fastest option and an index would be slower. It is worth investigating only when a selective filter on a large table produces one.
When it returns a small fraction of a large table. Either no usable index exists, or the filter cannot use one — a function applied to the column, a type mismatch, or a leading wildcard in a LIKE.
Because the visibility map is stale for those pages. The plan is correct and the table is behind; a VACUUM fixes it. The plan reports those as heap fetches.
Yes. For a SELECT that is usually fine; for anything that writes, wrap it in a transaction and roll back, or you will have run it for real.
No. It explains what a node implies and what to check. Index choice depends on your data distribution, your write patterns and the other queries on the table, none of which a reference page can see.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab