Possibly Incorrect Data Return

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема Possibly Incorrect Data Return
Дата
Msg-id 166794307526.652.9073408178177444190@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: Possibly Incorrect Data Return  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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)

В списке pgsql-docs по дате отправления:

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Example code bug: destination->data
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Example code bug: destination->data