pgsql: pgstatindex: Insert some casts to prevent overflow.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pgstatindex: Insert some casts to prevent overflow.
Date: 2017-08-10 17:12:49
Message-ID: E1dfr0r-00064z-KK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0b7ba3d6474b8f58e74dba548886df3250805cdf

Modified Files
--------------
contrib/pgstattuple/pgstatindex.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-08-10 17:18:01 pgsql: Fix typo in comment.
Previous Message Robert Haas 2017-08-10 15:25:48 pgsql: Remove incorrect assertion in clog.c