Expand description
An Optimizer that
- Optimistically calls
optimize_mir_constant. - Then, if we haven’t arrived at a constant, it does real optimization:
- calls
prep_relation_expranExprPrepStylewas given. - calls
optimize_mir_local, i.e., the logical optimizer.
- calls
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.