Re: [PATCH] FIx resource leaks (pg_resetwal.c) - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: [PATCH] FIx resource leaks (pg_resetwal.c)
Date
Msg-id CAH2-WznRdBjXVM0E8ZJ3_GfR3ui+1YXNxd3HxWPOZHKXxRV7AQ@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] FIx resource leaks (pg_resetwal.c)  (Ranier Vilela <ranier.vf@gmail.com>)
Responses Re: [PATCH] FIx resource leaks (pg_resetwal.c)
List pgsql-hackers
On Thu, Apr 23, 2020 at 11:41 AM Ranier Vilela <ranier.vf@gmail.com> wrote:
> And if I already propose a solution even if it is not the best, it is much better than being silent and missing the
opportunityto fix a bug.
 

The problem with that theory is that you're not creating any value
over simply running Coverity directly. Your patches don't seem to be
based on any real analysis beyond what makes Coverity stop
complaining, which is not helpful.

For example, the nbtree.c/btvacuumpage() issue you reported yesterday
involved a NULL pointer dereference, but if the code path in question
ever dereferenced the NULL pointer then it would be fundamentally
wrong in many other ways, probably leading to data corruption. The fix
that you posted obviously completely missed the point. Even when
Coverity identifies a serious issue, it usually needs to be carefully
interpreted.

Anybody can run Coverity. Many of us do. Maybe the approach you've
taken would have had a noticeable benefit if you were not dealing with
a codebase that has already been subject to lots of triage of Coverity
issues. But that's not the case.

> Ridiculous is your lack of education.

This isn't helping you at all.

--
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: +(pg_lsn, int8) and -(pg_lsn, int8) operators
Next
From: Tom Lane
Date:
Subject: Re: HEAPDEBUGALL is broken