Re: A small tweak to some comments for PartitionKeyData - Mailing list pgsql-hackers

From Amit Langote
Subject Re: A small tweak to some comments for PartitionKeyData
Date
Msg-id c619df7e-fbf3-6362-63cc-9871d8f0e7eb@lab.ntt.co.jp
Whole thread Raw
In response to A small tweak to some comments for PartitionKeyData  (David Rowley <david.rowley@2ndquadrant.com>)
Responses Re: A small tweak to some comments for PartitionKeyData  (David Rowley <david.rowley@2ndquadrant.com>)
List pgsql-hackers
On 2018/10/25 12:43, David Rowley wrote:
> While doing a bit of work on a partitioning patch I noticed that it's
> not really that obvious that there's meant to be exactly 1 item in the
> partexprs List for each zero-valued partattrs element. Some incorrect
> code using these fields was the cause of CVE-2018-1052, so I think
> it's worthwhile to mention how they should be used in the comments.
> 
> Patch attached.

Good idea.

+                                 * key, one for each zero-valued partattrs */

How about: for each zero-valued member of partattrs?

Regards,
Amit




pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: A small tweak to some comments for PartitionKeyData
Next
From: David Rowley
Date:
Subject: Re: A small tweak to some comments for PartitionKeyData