From: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Clarify the choice of rscale in numeric_sqrt(). |
Date: | 2023-02-02 09:44:52 |
Message-ID: | E1pNW9D-001CQw-It@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Clarify the choice of rscale in numeric_sqrt().
Improve the comment explaining the choice of rscale in numeric_sqrt(),
and ensure that the code works consistently when other values of
NBASE/DEC_DIGITS are used.
Note that, in practice, we always expect DEC_DIGITS == 4, and this
does not change the computation in that case.
Joel Jacobson and Dean Rasheed
Discussion: https://postgr.es/m/06712c29-98e9-43b3-98da-f234d81c6e49%40app.fastmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0736fc1ceb0659a9f73699910ac56603336daeee
Modified Files
--------------
src/backend/utils/adt/numeric.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robins Tharakan | 2023-02-02 12:55:18 | Re: pgsql: Do assorted mop-up in the planner. |
Previous Message | Thomas Munro | 2023-02-02 05:31:24 | pgsql: Doc: Abstract AF_UNIX sockets don't work on Windows. |