Re: how to correctly react on exception in pfree function?
| От | Tom Lane |
|---|---|
| Тема | Re: how to correctly react on exception in pfree function? |
| Дата | |
| Msg-id | 890991.1665632072@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: how to correctly react on exception in pfree function? (Julien Rouhaud <rjuju123@gmail.com>) |
| Ответы |
Re: how to correctly react on exception in pfree function?
|
| Список | pgsql-hackers |
Julien Rouhaud <rjuju123@gmail.com> writes:
> On Wed, Oct 12, 2022 at 11:08:25PM -0400, Tom Lane wrote:
>> It may be worth looking at the GUC code, which has been dealing
>> with the same sorts of issues pretty successfully for many years.
> The GUC code relies on malloc/free,
Not for much longer [1]. And no, I don't believe that that patch
makes any noticeable difference in the code's robustness.
In the end, a bug affecting these considerations is a bug to be fixed
once it's found. Building potentially-themselves-buggy defenses against
hypothetical bugs is an exercise with rapidly diminishing returns.
regards, tom lane
[1] https://www.postgresql.org/message-id/flat/2982579.1662416866@sss.pgh.pa.us
В списке pgsql-hackers по дате отправления: