Analyzing query plans with SET EXPLAIN output
You can use SET EXPLAIN output to study the query plans of an application. The output of the SET EXPLAIN statement shows decisions that the query optimizer makes. It shows whether parallel scans are used, the maximum number of threads required to answer the query, and the type of join used for the query.
You can restructure a query or use OPTCOMPIND to change how the optimizer treats the query.