From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Johnston <david.g.johnston@gmail.com>
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
Date: Wed, 07 May 2014 22:08:41 -0400
Message-ID: <16221.1399514921@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwb5vGLgA78ubffcNL-gH3eYTMJRaX05n2yrwTmsECp5HA@mail.gmail.com>
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>
<CAKFQuwb5vGLgA78ubffcNL-gH3eYTMJRaX05n2yrwTmsECp5HA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
David Johnston <david.g.johnston@gmail.com> writes:
> On Wed, May 7, 2014 at 8:07 PM, Tom Lane <tgl@sss.pgh.pa.us> 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 <sort specification list>:
i) Two rows that are not distinct with respect to the <sort
specification>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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
Subject: Re: BUG #10256: COUNT(*) behaves sort of like RANK() when used over a window containing an ORDER BY
In-Reply-To: <16221.1399514921@sss.pgh.pa.us>
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> <CAKFQuwb5vGLgA78ubffcNL-gH3eYTMJRaX05n2yrwTmsECp5HA@mail.gmail.com> <16221.1399514921@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