Re: BUG #16594: DROP INDEX CONCURRENTLY fails on partitioned table with a non helpful error message.
В списке pgsql-bugs по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: BUG #16594: DROP INDEX CONCURRENTLY fails on partitioned table with a non helpful error message. |
| Дата | |
| Msg-id | 20200901012553.GA17180@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: BUG #16594: DROP INDEX CONCURRENTLY fails on partitioned table with a non helpful error message. (Michael Paquier <michael@paquier.xyz>) |
| Ответы |
Re: BUG #16594: DROP INDEX CONCURRENTLY fails on partitioned table with a non helpful error message.
Re: BUG #16594: DROP INDEX CONCURRENTLY fails on partitioned table with a non helpful error message. |
| Список | pgsql-bugs |
On 2020-Aug-29, Michael Paquier wrote: > On Fri, Aug 28, 2020 at 08:22:42AM +0900, Michael Paquier wrote: > > Yes, adding that to RemoveRelations() makes sense. Thanks for the > > patch. > > I got some room to test the patch, and the place of the check looks > good to me. I think that I would move the new check before we set > PERFORM_DELETION_CONCURRENTLY for non-temporary relations though, as a > partition tree can be temporary as long as all its members are > temporary. Actually I think you're wrong; if I put it before the check, then if I do "drop index concurrently some_temp_partitioned_index" then it would fail; but if I put it after the check, then it does a normal non-concurrent index and it works. I'm not sure it's necessary to break a case that otherwise works ... (But for that to work I need to test the flag in the bitmask rather than the option in the command, as in the attached). -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера