The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/18/tutorial-agg.html Description:
Where it says: "FILTER is much like WHERE, except that it removes rows only from the input of the particular aggregate function that it is attached to. Here, the count aggregate counts only rows with temp_lo below 45; but the max aggregate is still applied to all rows, so it still finds the reading of 46." Should say "FILTER is much like WHERE, except that it removes rows only from the input of the particular aggregate function that it is attached to. Here, the count aggregate counts only rows with temp_lo below 45; but the max aggregate is still applied to all rows being considered with the GROUP BY clause, so it still finds the reading of 46." Wording may vary, I think a clarification on this should be an improvement.
