From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: pgstattuple: Use double consistently for percentages |
Date: | 2022-09-12 08:26:32 |
Message-ID: | E1oXem0-002Z3m-8i@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
pgstattuple: Use double consistently for percentages
pgstattuple uses data type double for other percentage calculations
and exposes those values to the users via the float8 data type.
However, scanned_percent in struct output_type is of type uint64, even
though it is later returned via Float8GetDatum(). Change it to use
double to be inline with other percentages.
Author: Bharath Rupireddy
Reviewed-by: Peter Eisentraut
Discussion: https://www.postgresql.org/message-id/36ee692b-232f-0484-ce94-dc39d82021ad%40enterprisedb.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/07d8af5e5e0cf5d5187353809920f344a5d20684
Modified Files
--------------
contrib/pgstattuple/pgstatapprox.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Dagfinn Ilmari Mannsåker | 2022-09-12 09:54:47 | Re: pgsql: Fix perltidy breaking perlcritic |
Previous Message | Peter Eisentraut | 2022-09-12 08:05:01 | pgsql: Use float8 datatype for percentiles in pg_walinspect stat functi |