projects
/
gevel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SPGIST_HEAD_BLKNO -> SPGIST_HEAD_BLKNO and update test's result
[gevel.git]
/
gevel.c
diff --git
a/gevel.c
b/gevel.c
index
ed7895b
..
fe2f896
100644
(file)
--- a/
gevel.c
+++ b/
gevel.c
@@
-883,7
+883,7
@@
spgist_stat(PG_FUNCTION_ARGS)
totalPages = RelationGetNumberOfBlocks(index);
totalPages = RelationGetNumberOfBlocks(index);
- for (blkno = SPGIST_
HEAD
_BLKNO; blkno < totalPages; blkno++)
+ for (blkno = SPGIST_
ROOT
_BLKNO; blkno < totalPages; blkno++)
{
Buffer buffer;
Page page;
{
Buffer buffer;
Page page;
@@
-1072,7
+1072,7
@@
spgist_print(PG_FUNCTION_ARGS)
MemoryContextSwitchTo(oldcontext);
MemoryContextSwitchTo(oldcontext);
- ItemPointerSet(&ipd, SPGIST_
HEAD
_BLKNO, FirstOffsetNumber);
+ ItemPointerSet(&ipd, SPGIST_
ROOT
_BLKNO, FirstOffsetNumber);
prst->stack = NIL;
pushSPGistPrint(funcctx, prst, &ipd, 1);
prst->stack = NIL;
pushSPGistPrint(funcctx, prst, &ipd, 1);