Skip to content
Snippets Groups Projects
Commit 106264ca authored by Tom Lane's avatar Tom Lane
Browse files

Teach planagg.c that partial indexes specifying WHERE foo IS NOT NULL can be

used to perform MIN(foo) or MAX(foo), since we want to discard null rows in
the indexscan anyway.  (This would probably fall out for free if we were
injecting the IS NOT NULL clause somewhere earlier, but given the current
anatomy of the MIN/MAX optimization code we have to do it explicitly.
Fortunately, very little added code is needed.)  Per a discussion with
Henk de Wit.
parent 5c8eb929
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment