Re: pgsql: Harmonize reorderbuffer parameter names.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Harmonize reorderbuffer parameter names.
Date: 2022-09-18 21:14:06
Message-ID: CAH2-Wzn4wPGwt=EO88sFp7a=Mz=v3j9Cq0MHsDh++k7F9K68eQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Sun, Sep 18, 2022 at 2:01 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> That's kind of annoying --- seems to put a serious crimp in any plans
> to check this mechanically.

I don't see why it should make a huge difference. Granted we can't
really rely on the "readability-named-parameter" check in the way we'd
hoped, but AFAICT we can rely on the
"readability-inconsistent-declaration-parameter-name" check to work
everywhere. The latter check is far more important in practice, I
think, because people don't tend to omit parameter names very often.

One further caveat here is that I seem to need to set "IgnoreMacros:
false" to get perfect results for the "inconsistent" check when the C
preprocessor is involved, as it often is (e.g., with TransactionId
params).

Even if some other limitations become apparent, we can probably afford
to allow some false negatives. I don't see any evidence of that so
far, barring this issue with unnamed parameter checking.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2022-09-18 21:34:46 Re: pgsql: Harmonize reorderbuffer parameter names.
Previous Message Tom Lane 2022-09-18 21:01:28 Re: pgsql: Harmonize reorderbuffer parameter names.