Re: Possible copy and past error? (\usr\backend\commands\analyze.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Possible copy and past error? (\usr\backend\commands\analyze.c)
Date: 2020-03-30 12:25:27
Message-ID: CAEudQAoxJOigTkz7U3mtQtiYf4ZS7c_2KcfZRqhkQxDq9Pg12A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em seg., 30 de mar. de 2020 às 05:16, Michael Paquier <michael(at)paquier(dot)xyz>
escreveu:

> On Sat, Mar 28, 2020 at 07:48:22AM -0300, Ranier Vilela wrote:
> > I completely disagree. My tools have proven their worth, including
> finding
> > serious errors in the code, which fortunately have been fixed by other
> > committers.
>
> FWIW, I think that the rule to always take Coverity's reports with a
> pinch of salt applies for any report.
>
I have certainly taken this advice seriously, since I have received all
kinds of say, "words of discouragement".
I understand perfectly that the list is very busy and perhaps the patience
with mistakes is very little, but these attitudes do not help new people to
work here.
I don't get paid to work with PostgreSQL, so consideration and recognition
are the only rewards for now.

>
> > When issuing this alert, the tool does not value judgment regarding
> > performance or optimization, but it does an excellent job of finding
> > similar patterns in adjacent lines, and the only thing it asked for was
> to
> > be asked if this was really the case. original author's intention.
>
> The code context matters a lot, but here let's leave this code alone.
> There is nothing wrong with it.
>
That is the question. Looking only at the code, there is no way to know
immediately, that there is nothing wrong. Not even a comment warning.
That's what the tool asked for, ask if there's really nothing wrong.

regards,
Ranier Vilela

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ranier Vilela 2020-03-30 12:29:51 Re: Possible copy and past error? (\usr\backend\commands\analyze.c)
Previous Message Tomas Vondra 2020-03-30 12:24:26 Re: [PATCH] Incremental sort (was: PoC: Partial sort)