Possibly Incorrect Data Return

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: jwwfou(at)gmail(dot)com
Subject: Possibly Incorrect Data Return
Date: 2022-11-08 21:31:15
Message-ID: 166794307526.652.9073408178177444190@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | 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:

Hello: I am working through the tutorial and the Doc page says the row count
is 5 but my results show 0 records. Of course, I may be doing something
wrong, too:

jwjwj=# SELECT city, max(temp_lo), count(*) FILTER (WHERE temp_lo < 30)
FROM weather
GROUP BY city
HAVING max(temp_lo) < 40;
city | max | count
---------+-----+-------
Hayward | 37 | 0
(1 row)

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2022-11-08 22:07:25 Re: Example code bug: destination->data
Previous Message PG Doc comments form 2022-11-08 00:25:37 Example code bug: destination->data