From: Teodor Sigaev Date: Mon, 1 Oct 2012 15:30:11 +0000 (+0400) Subject: SPGIST_HEAD_BLKNO -> SPGIST_HEAD_BLKNO and update test's result X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=7f5ef1863ab78cdebd7cd23e5f8d38d18db5c1f4;p=gevel.git SPGIST_HEAD_BLKNO -> SPGIST_HEAD_BLKNO and update test's result --- diff --git a/gevel.c b/gevel.c index ed7895b..fe2f896 100644 --- a/gevel.c +++ b/gevel.c @@ -883,7 +883,7 @@ spgist_stat(PG_FUNCTION_ARGS) totalPages = RelationGetNumberOfBlocks(index); - for (blkno = SPGIST_HEAD_BLKNO; blkno < totalPages; blkno++) + for (blkno = SPGIST_ROOT_BLKNO; blkno < totalPages; blkno++) { Buffer buffer; Page page; @@ -1072,7 +1072,7 @@ spgist_print(PG_FUNCTION_ARGS) MemoryContextSwitchTo(oldcontext); - ItemPointerSet(&ipd, SPGIST_HEAD_BLKNO, FirstOffsetNumber); + ItemPointerSet(&ipd, SPGIST_ROOT_BLKNO, FirstOffsetNumber); prst->stack = NIL; pushSPGistPrint(funcctx, prst, &ipd, 1);