Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKRfm-0002G0-Uf for pgsql-docs@arkaria.postgresql.org; Fri, 23 Dec 2016 15:22:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cKRfm-0008RX-1G for pgsql-docs@arkaria.postgresql.org; Fri, 23 Dec 2016 15:22:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cKRfP-000827-FU for pgsql-docs@postgresql.org; Fri, 23 Dec 2016 15:21:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cKRfI-0002x8-H6 for pgsql-docs@postgresql.org; Fri, 23 Dec 2016 15:21:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uBNFLdFH025082; Fri, 23 Dec 2016 10:21:39 -0500 From: Tom Lane To: steven.winfield@cantabcapital.com cc: pgsql-docs@postgresql.org Subject: Re: Median missing from aggregate functions page In-reply-to: <20161223102056.25614.1166@wrigleys.postgresql.org> References: <20161223102056.25614.1166@wrigleys.postgresql.org> Comments: In-reply-to steven.winfield@cantabcapital.com message dated "Fri, 23 Dec 2016 10:20:56 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25080.1482506499.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 23 Dec 2016 10:21:39 -0500 Message-ID: <25081.1482506499@sss.pgh.pa.us> X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org steven.winfield@cantabcapital.com writes: > The index contains an entry for "median" on the aggregate funct= ions page, > but there is no mention of it there. Hm --- that 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 --=20 Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs