]> granicus.if.org Git - postgresql/commit
pgstatindex: Insert some casts to prevent overflow.
authorRobert Haas <rhaas@postgresql.org>
Thu, 10 Aug 2017 15:48:42 +0000 (11:48 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 10 Aug 2017 15:48:42 +0000 (11:48 -0400)
commit0b7ba3d6474b8f58e74dba548886df3250805cdf
treecd3ba2bd478e28d14d2aa1d3a255a5be397fdc89
parentec99dd5aee8b831760046d43098c2d1cf23157ed
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
contrib/pgstattuple/pgstatindex.c