pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jimmy.b.mau@gmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Typo in 2.7 Aggregate Functions
Date: Mon, 16 Jan 2023 12:11:58 -0500
Message-ID: <1890613.1673889118@sss.pgh.pa.us> (raw)
In-Reply-To: <167388420869.2667301.17238386924074832449@wrigleys.postgresql.org>
References: <167388420869.2667301.17238386924074832449@wrigleys.postgresql.org>

PG Doc comments form <noreply@postgresql.org> writes:
> 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.

Yeah :-(.  This is already fixed in our source tree [1], as you
can see on the website if you look at the "devel" branch.  But the
released-version docs won't update till our next releases, in
February.

Thanks for the report, anyway!

			regards, tom lane

[1] https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=f05a5e0003edfec027ee10d09...





view thread (2+ messages)

Message-ID: <1890613.1673889118@sss.pgh.pa.us>
Permalink:  ../1890613.1673889118@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1890613.1673889118@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jimmy.b.mau@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Typo in 2.7 Aggregate Functions
  In-Reply-To: <1890613.1673889118@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox