Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WiDlR-0006lo-VD for pgsql-bugs@arkaria.postgresql.org; Thu, 08 May 2014 02:08:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WiDlR-0006Xs-5b for pgsql-bugs@arkaria.postgresql.org; Thu, 08 May 2014 02:08:49 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WiDlQ-0006Xm-E1 for pgsql-bugs@postgresql.org; Thu, 08 May 2014 02:08:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WiDlL-0006a4-6y for pgsql-bugs@postgresql.org; Thu, 08 May 2014 02:08:47 +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 s4828f6p016222; Wed, 7 May 2014 22:08:41 -0400 From: Tom Lane To: David Johnston cc: pgsql-bugs@postgresql.org Subject: Re: Re: BUG #10256: COUNT(*) behaves sort of like RANK() when used over a window containing an ORDER BY In-reply-to: References: <20140507181702.1397.66739@wrigleys.postgresql.org> <5812.1399498939@sss.pgh.pa.us> <1399504103854-5803103.post@n5.nabble.com> <9043.1399507637@sss.pgh.pa.us> Comments: In-reply-to David Johnston message dated "Wed, 07 May 2014 20:29:26 -0400" Date: Wed, 07 May 2014 22:08:41 -0400 Message-ID: <16221.1399514921@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org David Johnston writes: > On Wed, May 7, 2014 at 8:07 PM, Tom Lane wrote: >> [ looks at SQL standard... ] The standard uses "peer" in this way too, >> so that's where we got the term from. Because of that, I'm unwilling >> to adopt your suggestion of thinking that "peer" means "member of the >> same partition". > I guess rows falling into the same partition could be deemed "member" rows; > as in having membership in the partition. Works for me. > Does the standard provide a word for tuples that get placed into the same > partition? Not that I noticed, but I didn't search hard. The index of SQL:2011 has one entry for "peer", pointing to this definition under 10.10 : i) Two rows that are not distinct with respect to the s are said to be peers of each other. The relative ordering of peers is implementation-dependent. so in their usage it's not even specific to windows. The terminology for windows seems to be mostly defined in 4.15.14, and I don't see a term in there for the rows belonging to a partition. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs