COALESCE stops at the first NOT NULL argument
Arguments after a NOT NULL one can never be used.
task
Filter lab.coal with COALESCE(b, a, b * a) > 1 and read the filter in the plan.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Arguments after a NOT NULL one can never be used.
Filter lab.coal with COALESCE(b, a, b * a) > 1 and read the filter in the plan.