| От | Alvaro Herrera |
|---|---|
| Тема | Re: row filtering for logical replication |
| Дата | |
| Msg-id | 20181123161933.jpepibtyayflz2xg@alvherre.pgsql обсуждение |
| Ответ на | Re: row filtering for logical replication (Euler Taveira <euler@timbira.com.br>) |
| Список | pgsql-hackers |
On 2018-Nov-23, Euler Taveira wrote: > Em qui, 22 de nov de 2018 às 20:03, Petr Jelinek > <petr.jelinek@2ndquadrant.com> escreveu: > > Won't this leak memory? The list_free only frees the list cells, but not > > the nodes you stored there before. > > Good catch. It should be list_free_deep. Actually, if the nodes have more structure (say you palloc one list item, but that list item also contains pointers to a Node) then a list_free_deep won't be enough either. I'd suggest to create a bespoke memory context, which you can delete afterwards. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера