Re: [PATCH] FIx resource leaks (pg_resetwal.c)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Re: [PATCH] FIx resource leaks (pg_resetwal.c)
Дата
Msg-id CAEudQAr6rA+nBSFOTmhR_YV5Qkput_D6raA7OgC7fAZCdiebzg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] FIx resource leaks (pg_resetwal.c)  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Em qui., 23 de abr. de 2020 às 16:43, Robert Haas <robertmhaas@gmail.com> escreveu:
On Thu, Apr 23, 2020 at 2:41 PM Ranier Vilela <ranier.vf@gmail.com> wrote:
> I do not agree in any way. At the very least what I am reporting is suspect. And if I already propose a solution even if it is not the best, it is much better than being silent and missing the opportunity to fix a bug.
> Ridiculous is your lack of education.

That's rather rude. I doubt that you know anything about how much
education Andres does nor does not have. The fact that he doesn't
agree with you does not mean that he is poorly educated.
Sorry Robert.
 

On the substance of the issue, I see from the commit log that you've
gotten a few real issues fixed -- but I also agree with Andres that
you've reported a lot of things that are not real issues, and that
takes up other people's time looking at things that really don't
matter. Please make an effort not to report things that don't actually
need to be fixed.
All my patches don't just leave my head. It comes from reports of analysis tools, by themselves, they are already suspect.
I confess that FATAL error log, confused me a lot and since then, I have tried my best not to make the same mistakes.
 

pg_resetwal exits very quickly, generally in a small fraction of a
second. The allocation you're at pains to free only happens once per
execution and allocates only 8kB. Trying to free allocations that are
tiny and short-lived has no benefit. It's better to let the program
exit that much quicker, at which point all the memory is freed anyway.
Read_controlfile is a function, as it stands, it is useless to be reused.
 
best regards,
Ranier Vilela

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: Re: [PATCH] FIx resource leaks (pg_resetwal.c)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Fix possible overflow on tuplesort.c