projects
/
gevel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c575ba
)
SPGIST_HEAD_BLKNO -> SPGIST_HEAD_BLKNO and update test's result
author
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 1 Oct 2012 15:30:11 +0000
(19:30 +0400)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 1 Oct 2012 15:30:11 +0000
(19:30 +0400)
gevel.c
patch
|
blob
|
history
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);