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

Implement outer-level aggregates to conform to the SQL spec, with

extensions to support our historical behavior.  An aggregate belongs
to the closest query level of any of the variables in its argument,
or the current query level if there are no variables (e.g., COUNT(*)).
The implementation involves adding an agglevelsup field to Aggref,
and treating outer aggregates like outer variables at planning time.
parent 2c93861f
No related branches found
No related tags found
No related merge requests found
Showing
with 564 additions and 224 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment