Re: [PATCH] Fix: Partitioned parent index remains invalid after child indexes are repaired
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: [PATCH] Fix: Partitioned parent index remains invalid after child indexes are repaired |
| Дата | |
| Msg-id | aeVSPx7F3ghkZugb@paquier.xyz обсуждение |
| Ответ на | Re: [PATCH] Fix: Partitioned parent index remains invalid after child indexes are repaired (Sami Imseih <samimseih@gmail.com>) |
| Список | pgsql-hackers |
On Sat, Apr 18, 2026 at 09:37:48AM -0500, Sami Imseih wrote: > Here is the patch with tests. It adds a test for this case using > multi-level partitions and ensures that the parent indexes are > validated once a child index is set to valid. Also, I added the > negative case where only one child index is validated to ensure > that the parent indexes remain invalid. That looks sensible here, including the test coverage. Thanks for the patch! One thing that I'm tempted to add is more scans to check indisvalid across these commands, particularly after the individual ATTACH PARTITION bits on each individual index. A second thing. Do you think that it would be worth adding a partitioned table that has no leaves in some portion of the test? I was thinking about a partitioned table called idxpart2 attached to idxpart in the first part of the test. I've found this pattern usually useful for this area of the code when recursing with validatePartitionedIndex() from a parent. I was also thinking about a partitioned table idxpart3 in the last test block, but as you want to check that indisvalid is not flipped to true for the parent if a child is !indisvalid, it would not be adapted. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера