public inbox for [email protected]
help / color / mirror / Atom feedFrom: Daniel Gustafsson <[email protected]>
To: Tom Lane <[email protected]>
Cc: [email protected]
Cc: [email protected]
Subject: Re: Proposal to improve uniq function documentation in intarray extension
Date: Fri, 3 Jun 2022 19:05:57 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
> On 3 Jun 2022, at 17:34, Tom Lane <[email protected]> wrote:
> .. there's no longer any reason we have
> to limit ourselves to one example. I propose this:
>
> diff --git a/doc/src/sgml/intarray.sgml b/doc/src/sgml/intarray.sgml
> index f930c08eeb..18c6f8c3ba 100644
> --- a/doc/src/sgml/intarray.sgml
> +++ b/doc/src/sgml/intarray.sgml
> @@ -131,6 +131,11 @@
> </para>
> <para>
> Removes adjacent duplicates.
> + Often used with <function>sort</function> to remove all duplicates.
> + </para>
> + <para>
> + <literal>uniq('{1,2,2,3,1,1}'::integer[])</literal>
> + <returnvalue>{1,2,3,1}</returnvalue>
> </para>
> <para>
> <literal>uniq(sort('{1,2,3,2,1}'::integer[]))</literal>
+1
--
Daniel Gustafsson https://vmware.com/
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: Proposal to improve uniq function documentation in intarray extension
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox