GPORCA Limitations

GPORCA Limitations

There are limitations in Greenplum Database when using the default GPORCA optimizer. GPORCA and the legacy query optimizer currently coexist in Greenplum Database because GPORCA does not support all Greenplum Database features.
This section describes the limitations.

Unsupported SQL Query Features

These are unsupported features when GPORCA is enabled (the default):
  • Indexed expressions (an index defined as expression based on one or more columns of the table)
  • PERCENTILE window function
  • External parameters
  • These types of partitioned tables:
    • Non-uniform partitioned tables.
    • Partitioned tables that have been altered to use an external table as a leaf child partition.
  • SortMergeJoin (SMJ)
  • Ordered aggregations
  • These analytics extensions:
    • CUBE
    • Multiple grouping sets
  • These scalar operators:
    • ROW
    • ROWCOMPARE
    • FIELDSELECT
  • Multiple DISTINCT qualified aggregate functions
  • Inverse distribution functions

Performance Regressions

The following features are known performance regressions that occur with GPORCA enabled:
  • Short running queries - For GPORCA, short running queries might encounter additional overhead due to GPORCA enhancements for determining an optimal query execution plan.
  • ANALYZE - For GPORCA, the ANALYZE command generates root partition statistics for partitioned tables. For the legacy optimizer, these statistics are not generated.
  • DML operations - For GPORCA, DML enhancements including the support of updates on partition and distribution keys might require additional overhead.

Also, enhanced functionality of the features from previous versions could result in additional time required when GPORCA executes SQL statements with the features.