Re: Refactor StringInfo usage in subscriptioncmds.c
| От | Álvaro Herrera |
|---|---|
| Тема | Re: Refactor StringInfo usage in subscriptioncmds.c |
| Дата | |
| Msg-id | 202511061224.qwx6pqiyiwku@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Refactor StringInfo usage in subscriptioncmds.c (Mats Kindahl <mats.kindahl@gmail.com>) |
| Ответы |
Re: Refactor StringInfo usage in subscriptioncmds.c
|
| Список | pgsql-hackers |
On 2025-Nov-06, Mats Kindahl wrote: > Attached is a proposal that instead of building error message and hints > dynamically, it will use ereport() directly and as a result does not have to > allocate the error message strings and error message hints dynamically and > these can be removed. LGTM, thanks. I agree with Amit that there doesn't seem to be a need to free pubnames.data. We're already leaking publist, for instance. This is okay since we only call these functions during DDL, which in general is not sensitive to leaks. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Small aircraft do not crash frequently ... usually only once!" (ponder, http://thedailywtf.com/)
В списке pgsql-hackers по дате отправления: