aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-09-12 09:38:07 +0200
committerPeter Eisentraut <peter@eisentraut.org>2022-09-12 10:01:00 +0200
commit57796a0f15f8fd3c908aa885a7ebb8ae47ce9880 (patch)
treea17383befe002ee0a41cd6ecf9a480e4ad48c390 /src/backend/access/gist/gistutil.c
parent88f488319bac051b874bcec87941217e25e0e126 (diff)
downloadpostgresql-57796a0f15f8fd3c908aa885a7ebb8ae47ce9880.tar.gz
postgresql-57796a0f15f8fd3c908aa885a7ebb8ae47ce9880.zip
Use float8 datatype for percentiles in pg_walinspect stat functions
pg_walinspect uses datatype double (double precision floating point number) for WAL stats percentile calculations and expose them via float4 (single precision floating point number), which an unnecessary loss of precision and confusing. Even though, it's harmless that way, let's use float8 (double precision floating-point number) to be in sync with what pg_walinspect does internally and what it exposes to the users. This seems to be the pattern used elsewhere in the code. Reported-by: Peter Eisentraut Author: Bharath Rupireddy Reviewed-by: Peter Eisentraut Discussion: https://www.postgresql.org/message-id/36ee692b-232f-0484-ce94-dc39d82021ad%40enterprisedb.com
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions