string_agg

Started by PG Bug reporting formover 2 years ago2 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/16/functions-aggregate.html
Description:

Please add the argument "distinct" to the documentation of the
aggregate-function "string_agg". It's used to omit any duplicates in the
result string.

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: PG Bug reporting form (#1)
Re: string_agg

On Wednesday, December 27, 2023, PG Doc comments form <
noreply@postgresql.org> wrote:

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/16/functions-aggregate.html
Description:

Please add the argument "distinct" to the documentation of the
aggregate-function "string_agg". It's used to omit any duplicates in the
result string.

string_agg isn’t special in this regard so instead of cluttering up every
function with distinct we instead choose to document it as a syntax feature
of aggregate functions in general.

https://www.postgresql.org/docs/16/sql-expressions.html#SYNTAX-AGGREGATES

David J.