On Thu, May 17, 2018 at 10:36 AM, Amit Langote <amitlangot...@gmail.com> wrote: > On Thu, May 17, 2018 at 10:29 PM, Robert Haas <robertmh...@gmail.com> wrote: >> Unless the indexing system actually can't reference the first element >> of *pds, and -1 means the second element. But then I think we need a >> more verbose explanation here. > > First element in *pds list (and the array subsequently created from > it) contains the root table's entry. So, a -1 does mean the 2nd entry > in that list/array. A 0 in the indexes array always refers to a leaf > partition and hence an index into the array for leaf partitions.
All right, so let's just say that explicitly. Maybe something like the attached. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Description: Binary data