Re: pgsql: Buffering GiST index build algorithm. - Mailing list pgsql-committers

From Andrew Dunstan
Subject Re: pgsql: Buffering GiST index build algorithm.
Date
Msg-id 4E6921D4.6070409@dunslane.net
Whole thread Raw
In response to pgsql: Buffering GiST index build algorithm.  (Heikki Linnakangas <heikki.linnakangas@iki.fi>)
Responses Re: pgsql: Buffering GiST index build algorithm.
List pgsql-committers

On 09/08/2011 10:56 AM, Heikki Linnakangas wrote:
> Buffering GiST index build algorithm.
>
> When building a GiST index that doesn't fit in cache, buffers are attached
> to some internal nodes in the index. This speeds up the build by avoiding
> random I/O that would otherwise be needed to traverse all the way down the
> tree to the find right leaf page for tuple.


This seems to have broken MSVC builds:

    "C:\prog\bf\root\HEAD\pgsql.5584\pgsql.sln" (default target) (1) ->
    (postgres target) ->
       .\src\backend\access\gist\gistbuild.c(423): warning C4013: 'round' undefined; assuming extern returning int


    "C:\prog\bf\root\HEAD\pgsql.5584\pgsql.sln" (default target) (1) ->
    (postgres target) ->
       gistbuild.obj : error LNK2019: unresolved external symbol round referenced in function calculatePagesPerBuffer
       .\Debug\postgres\postgres.exe : fatal error LNK1120: 1 unresolved externals


Maybe we need to include math.h. And while we're about it, should the
result of round() be cast to an int, since that's what the function returns?

cheers

andrew

pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Tweak string for uniformity
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Translation updates for 9.1.0