Re: set relispartition when attaching child index
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Amit Langote <amitlangote09@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2019-04-26T14:12:29Z
Lists: pgsql-hackers
On 2019-Apr-25, Amit Langote wrote: > BTW, this will need to be back-patched to 11. Done, thanks for the patch. I added the test in master, but obviously it doesn't work in pg11, so I just verified manually that relispartition is set correctly. I don't think it's worth doing more, though there are other things that are affected by a bogus relispartition marking for an index (example: creating the index in the last partition that didn't have it, should mark the index on parent valid; I think that would fail to propagate to upper levels correctly.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Fix partitioned index attachment
- b1f570b57ccc 11.3 landed
- 05b38c7e63d1 12.0 landed