# EXPLAIN PLAN Reference page for `EXPLAIN PLAN`. `EXPLAIN PLAN` is used to inspect the plans of `SELECT` statements, `SUBSCRIBE` statements, indexes, and materialized views. `EXPLAIN PLAN` displays the plans used for: | | | |-----------------------------|-----------------------| |

| | > **Warning:** `EXPLAIN` is not part of Materialize's stable interface and is not subject to > our backwards compatibility guarantee. The syntax and output of `EXPLAIN` may > change arbitrarily in future versions of Materialize. ## Syntax **FOR SELECT:** ```mzsql EXPLAIN [ [ RAW | DECORRELATED | [LOCALLY] OPTIMIZED | PHYSICAL ] PLAN [ WITH ( [, ...])] [ AS TEXT | AS JSON ] FOR ] -- The FOR keyword is required if the PLAN keyword is specified