Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec99dd5 commit 0b7ba3dCopy full SHA for 0b7ba3d
contrib/pgstattuple/pgstatindex.c
@@ -687,13 +687,14 @@ pgstathashindex(PG_FUNCTION_ARGS)
687
index_close(rel, AccessShareLock);
688
689
/* Count unused pages as free space. */
690
- stats.free_space += stats.unused_pages * stats.space_per_page;
+ stats.free_space += (uint64) stats.unused_pages * stats.space_per_page;
691
692
/*
693
* Total space available for tuples excludes the metapage and the bitmap
694
* pages.
695
*/
696
- total_space = (nblocks - (stats.bitmap_pages + 1)) * stats.space_per_page;
+ total_space = (uint64) (nblocks - (stats.bitmap_pages + 1)) *
697
+ stats.space_per_page;
698
699
if (total_space == 0)
700
free_percent = 0.0;
0 commit comments