Module view

Source
Expand description

An Optimizer that

  1. Optimistically calls optimize_mir_constant.
  2. Then, if we haven’t arrived at a constant, it does real optimization:
    • calls prep_relation_expr an ExprPrepStyle was given.
    • calls optimize_mir_local, i.e., the logical optimizer.

This is used for CREATE VIEW statements and in various other situations where no physical optimization is needed, such as for INSERT statements.

TODO: We should split this into an optimizer that is just for views, and another optimizer for various other ad hoc things, such as INSERT, COPY FROM, etc.

Structs§

Optimizer