Re: typo fix - Mailing list pgsql-hackers

From Amit Langote
Subject Re: typo fix
Date
Msg-id 176763d9-c921-af42-d713-4eb16a506aa9@lab.ntt.co.jp
Whole thread Raw
In response to Re: typo fix  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2018/11/20 15:58, Tom Lane wrote:
> Michael Paquier <michael@paquier.xyz> writes:
>> On Tue, Nov 20, 2018 at 02:00:39PM +0900, Amit Langote wrote:
>>> - * We also use EquivalenceClasses as the base structure for PathKeys, letting
>>> + * We also use EquivalenceClass as the base structure for PathKeys, letting
> 
>> ...  But not that.
> 
> The reason that's not good is that it creates a singular-plural mismatch.

Hmm, yeah.

> If you'd also changed "PathKeys" to "PathKey", it would still read OK,
> though I don't think it's an improvement particularly.

So,

- * We also use EquivalenceClasses as the base structure for PathKeys,
+ * We also use EquivalenceClass as the base structure for PathKey,

> (Hm ... though arguably, "structure" should be "structures" if we're
> going to let it stand as plural.)

vs.

- * We also use EquivalenceClasses as the base structure for PathKeys,
+ * We also use EquivalenceClasses as the base structures for PathKeys,

If I'm understanding this right, aren't different orderings represented by
different PathKey nodes considered equivalent if they share the base
EquivalenceClass?  If that's the case, I think the former reads better.

Thanks,
Amit

Attachment

pgsql-hackers by date:

Previous
From: Darafei "Komяpa" Praliaskouski
Date:
Subject: Re: zheap: a new storage format for PostgreSQL
Next
From: Amit Langote
Date:
Subject: Re: Regarding performance regression on specific query