From 737ab85cc08c888d8f8817073909ec0ecdf62d18 Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Thu, 22 May 1997 16:01:33 +0000 Subject: 1. Pass GISTENTRYs to giststate->penaltyFn by pointers, not by vals. 2. Re-initialize keys in gistrescan (if gist used in inner scan). --- src/backend/access/gist/gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/access/gist/gist.c') diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index cc14a2e4487..f5338424c90 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -987,7 +987,7 @@ gistchoose(Relation r, Page p, IndexTuple it, /* it has compressed entry */ size = IndexTupleSize(datum) - sizeof(IndexTupleData); datum += sizeof(IndexTupleData); gistdentryinit(giststate,&entry,datum,r,p,i,size,FALSE); - (giststate->penaltyFn)(entry, identry, &usize); + (giststate->penaltyFn)(&entry, &identry, &usize); if (which_grow < 0 || usize < which_grow) { which = i; which_grow = usize; -- cgit v1.2.3