describePlan

The whole of what a plan will do, as text.

A plan is assembled by one layer and run by another, so the code holding it at the moment it fails is usually not the code that decided what went in. This is what that code can print.

Return

One block per step: its index, its SQL, and where each parameter comes from.

Parameters

entries

The plan's steps, in the order they will run.