Re: A small tweak to some comments for PartitionKeyData

From: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
To: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: A small tweak to some comments for PartitionKeyData
Date: 2018-10-25 03:46:44
Message-ID: c619df7e-fbf3-6362-63cc-9871d8f0e7eb@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2018-10-25 03:54:58 Re: A small tweak to some comments for PartitionKeyData
Previous Message David Rowley 2018-10-25 03:43:04 A small tweak to some comments for PartitionKeyData