| От | Michael Paquier |
|---|---|
| Тема | Re: ATTACH/DETACH PARTITION CONCURRENTLY |
| Дата | |
| Msg-id | 20181116040023.GD6613@paquier.xyz обсуждение |
| Ответ на | Re: ATTACH/DETACH PARTITION CONCURRENTLY (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>) |
| Ответы |
Re: ATTACH/DETACH PARTITION CONCURRENTLY
|
| Список | pgsql-hackers |
On Fri, Nov 16, 2018 at 10:57:57AM +0900, Amit Langote wrote: > Maybe partition_bounds_create() should've had a MemoryContext argument to > pass it the context we want it to create the PartitionBoundInfo in. That > way, we can simply pass rd_pdcxt to it and avoid making a copy. As is, > we're now allocating two copies of PartitionBoundInfo, one in the > CurrentMemoryContext and another in rd_pdcxt, whereas the previous code > would only allocate the latter. Maybe we should fix it as being a regression. Not sure about what you mean by regression here, but passing the memory context as an argument has sense as you can remove the extra partition bound copy, as it has sense to use an array instead of a list for performance, which may matter if many partitions are handled when building the cache. So cleaning up both things at the same time would be nice. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера