Re: Some incorrect comments and out-dated README from run-timepruning - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Some incorrect comments and out-dated README from run-timepruning
Date
Msg-id 4f3dfccd-1f2c-4fe7-e534-f22d6a56ab26@2ndquadrant.com
Whole thread Raw
In response to Some incorrect comments and out-dated README from run-time pruning  (David Rowley <david.rowley@2ndquadrant.com>)
Responses Re: Some incorrect comments and out-dated README from run-time pruning
List pgsql-hackers
On 27/09/2018 23:20, David Rowley wrote:
> I've noticed that the comments above the PartitionedRelPruneInfo
> struct incorrectly document how subplan_map and subpart_map are
> indexed. This seems to have snuck in on 4e232364033.

- * subplan_map[] and subpart_map[] are indexed by partition index (where
- * zero is the topmost partition, and non-leaf partitions must come before
- * their children).  For a leaf partition p, subplan_map[p] contains the
+ * subplan_map[] and subpart_map[] are indexed by partition index (as
defined
+ * in the PartitionDesc).  For a leaf partition p, subplan_map[p]
contains the

I don't see what someone reading this comment would do with "as defined
in the PartitionDesc".  I don't see any PartitionDesc referenced or
mentioned at or near that struct.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Arun Kumar
Date:
Subject: Requesting advanced Group By support
Next
From: Michael Paquier
Date:
Subject: Re: Function for listing archive_status directory