IS NOT DISTINCT FROM NULL on a NOT NULL column
The planner proves the predicate false and skips the scan.
task
Show the plan of selecting id where val_nn IS NOT DISTINCT FROM NULL::int.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
The planner proves the predicate false and skips the scan.
Show the plan of selecting id where val_nn IS NOT DISTINCT FROM NULL::int.