pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: steven.winfield@cantabcapital.com
Cc: pgsql-docs@postgresql.org
Subject: Re: Median missing from aggregate functions page
Date: Fri, 23 Dec 2016 10:21:39 -0500
Message-ID: <25081.1482506499@sss.pgh.pa.us> (raw)
In-Reply-To: <20161223102056.25614.1166@wrigleys.postgresql.org>
References: <20161223102056.25614.1166@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

steven.winfield@cantabcapital.com writes:
> The index contains an entry for &quot;median&quot; on the aggregate functions page,
> but there is no mention of it there.

Hm --- that <indexterm> entry is attached to the percentile_cont()
function, which can be used to implement median, but I agree that
a person who already knew that would probably not be following the
index pointer.

It might be more useful to point to 4.2.7. Aggregate Expressions
which contains a concrete example of how to implement median
with percentile_disc().

Another idea is to just make the index entry say
"See percentile_cont() and percentile_disc()".

			regards, tom lane


-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



view thread (2+ messages)

Message-ID: <25081.1482506499@sss.pgh.pa.us>
Permalink:  ../25081.1482506499@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25081.1482506499@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, steven.winfield@cantabcapital.com
  Subject: Re: Median missing from aggregate functions page
  In-Reply-To: <25081.1482506499@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