XML Query Plan Logging - Teradata VantageCloud Lake

Lake - Database Reference

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
ohi1683672393549.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
ohi1683672393549

The WITH XMLPLAN option of the BEGIN QUERY LOGGING statement provides more detailed Optimizer query plan information than the INSERT EXPLAIN statement modifier. That plan information, structured and stored as an XML document, can be easily parsed and analyzed by those reading the log.

The XMLPLAN option does not log query plans for EXPLAIN request modifiers, DDL requests, or for the INSERT EXPLAIN and DUMP EXPLAIN statements.

INSERT EXPLAIN and DUMP EXPLAIN are supported only on the Block File System on the primary cluster, not the Object File System.
Query plan logging has the following benefits:
  • Does not require users to create a separate database to capture query plans.
  • Lets users to capture the plans for a set of queries easily using a single BEGIN QUERY LOGGING or REPLACE QUERY LOGGING statement rather than having to issue a separate INSERT EXPLAIN or DUMP EXPLAIN statement for each one.
  • Provides more plan details than the INSERT EXPLAIN modifier.