pgstatindex: Insert some casts to prevent overflow.
Robert Haas <rhaas@postgresql.org>
pgstatindex: Insert some casts to prevent overflow. This could cause hash indexes to report greater than 100% free space. Ashutosh Sharma, reviewed by Amit Kapila Discussion: http://postgr.es/m/CAE9k0PnCKfg-ZK1CwGZJPF1yKcG2A=GUgC3BMdNMzLAXVOo4Eg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pgstattuple/pgstatindex.c | modified | +3 −2 |
Discussion
- free space % calculation in pgstathashindex 5 messages · 2017-08-07 → 2017-08-10