| From: | PG Doc comments form <noreply(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-docs(at)lists(dot)postgresql(dot)org |
| Cc: | jimmy(dot)b(dot)mau(at)gmail(dot)com |
| Subject: | Typo in 2.7 Aggregate Functions |
| Date: | 2023-01-16 15:50:08 |
| Message-ID: | 167388420869.2667301.17238386924074832449@wrigleys.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-docs |
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/15/tutorial-agg.html
Description:
Near the end of Chapter 2.7 Aggregate Functions of the documentation, the
command FILTER is introduced. The full query is
SELECT city, max(temp_lo), count(*) FILTER (WHERE temp_lo < 30)
FROM weather
GROUP BY city
HAVING max(temp_lo) < 40;
and the output shows a count value of 5. This is an error.
In total we only have 3 rows in the table so far. Furthermore, none of the
rows have temp_lo < 30. If I'm not mistaken, the count value should be 0.
Thanks,
Jimmy
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2023-01-16 16:50:11 | Re: The documentation for storage type 'plain' actually allows single byte header |
| Previous Message | Laurenz Albe | 2023-01-16 13:07:48 | Re: The documentation for storage type 'plain' actually allows single byte header |