Re: NumericShort vs NumericLong format - Mailing list pgsql-hackers

From Ole Peder Brandtzæg
Subject Re: NumericShort vs NumericLong format
Date
Msg-id 20240409114115.opvkgfnhejxbffbv@samfundet.no
Whole thread Raw
In response to Re: NumericShort vs NumericLong format  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Mar 07, 2023 at 12:15:27AM -0500, Tom Lane wrote:
> "David G. Johnston" <david.g.johnston@gmail.com> writes:
> > As an aside, for anyone more fluent than I who reads this, is the use of
> > the word "dynamic scale" in this code comment supposed to be "display
> > scale"?
> >
https://github.com/postgres/postgres/blob/cf96907aadca454c4094819c2ecddee07eafe203/src/backend/utils/adt/numeric.c#L121
> 
> Yeah, I think you're right.

Familiarizing myself with numeric.c today, I too was confused by this.
AFAICT, it's meant to say display scale as used elsewhere in the file;
for instance, the comment for NumericShort's n_header reads "Sign +
display scale + weight". Would it be appropriate if I submitted a patch
for this? It's admittedly trivial, but I figured I should say hi before
submitting one.

All the best,
Ole

-- 
Ole Peder Brandtzæg | En KLST/ITK-hybrid
Please don't look at me with those eyes
Please don't hint that you're capable of lies



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: sql/json remaining issue
Next
From: Andrew Dunstan
Date:
Subject: Re: WIP Incremental JSON Parser