From 7f5ef1863ab78cdebd7cd23e5f8d38d18db5c1f4 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Mon, 1 Oct 2012 19:30:11 +0400 Subject: [PATCH] SPGIST_HEAD_BLKNO -> SPGIST_HEAD_BLKNO and update test's result --- gevel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.37.3