Doc: clarify behavior of standard aggregates for null inputs.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c0222c2c9b8145a0ccbee7d801db848e871f2e14
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2019-08-27T20:37:22Z
Releases: 12.0
Doc: clarify behavior of standard aggregates for null inputs.

Section 4.2.7 says that unless otherwise specified, built-in
aggregates ignore rows in which any input is null.  This is
not true of the JSON aggregates, but it wasn't documented.
Fix that.

Of the other entries in table 9.55, some were explicit about
ignoring nulls, and some weren't; for consistency and
self-contained-ness, make them all say it explicitly.

Per bug #15884 from Tim Möhlmann.  Back-patch to all supported
branches.

Discussion: https://postgr.es/m/15884-c32d848f787fcae3@postgresql.org

Files

PathChange+/−
doc/src/sgml/func.sgml modified +15 −11

Documentation touched

Discussion