From 18c8ced81e4a6e093c732f8cded3b16426d16952 Mon Sep 17 00:00:00 2001 From: Artur Beltsov Date: Wed, 4 Nov 2020 16:30:47 +0500 Subject: Fixed #32169 -- Added distinct support to JSONBAgg. --- docs/ref/contrib/postgres/aggregates.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'docs/ref') diff --git a/docs/ref/contrib/postgres/aggregates.txt b/docs/ref/contrib/postgres/aggregates.txt index 31202d5304..c309dcad14 100644 --- a/docs/ref/contrib/postgres/aggregates.txt +++ b/docs/ref/contrib/postgres/aggregates.txt @@ -114,10 +114,17 @@ General-purpose aggregation functions ``JSONBAgg`` ------------ -.. class:: JSONBAgg(expressions, filter=None, ordering=(), **extra) +.. class:: JSONBAgg(expressions, distinct=False, filter=None, ordering=(), **extra) Returns the input values as a ``JSON`` array. + .. attribute:: distinct + + .. versionadded:: 3.2 + + An optional boolean argument that determines if array values will be + distinct. Defaults to ``False``. + .. attribute:: ordering .. versionadded:: 3.2 -- cgit v1.3