diff options
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
-rw-r--r-- | src/backend/access/gist/gistbuild.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/access/gist/gistbuild.c b/src/backend/access/gist/gistbuild.c index 83192385106..58f1ef221e1 100644 --- a/src/backend/access/gist/gistbuild.c +++ b/src/backend/access/gist/gistbuild.c @@ -14,6 +14,8 @@ */ #include "postgres.h" +#include <math.h> + #include "access/genam.h" #include "access/gist_private.h" #include "catalog/index.h" @@ -420,7 +422,7 @@ calculatePagesPerBuffer(GISTBuildState *buildstate, int levelStep) */ pagesPerBuffer = 2 * pow(avgIndexTuplesPerPage, levelStep); - return round(pagesPerBuffer); + return (int) rint(pagesPerBuffer); } /* |