diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-05-22 16:01:33 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-05-22 16:01:33 +0000 |
commit | 737ab85cc08c888d8f8817073909ec0ecdf62d18 (patch) | |
tree | 64965d1eb4d2ed245a9ed9fd1719c629c5466615 /src/backend/access/gist/gist.c | |
parent | 4800abc7c16150485ef39f52f63fd588373c9911 (diff) | |
download | postgresql-737ab85cc08c888d8f8817073909ec0ecdf62d18.tar.gz |
1. Pass GISTENTRYs to giststate->penaltyFn by pointers, not by vals.
2. Re-initialize keys in gistrescan (if gist used in inner scan).
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r-- | src/backend/access/gist/gist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index cc14a2e448..f5338424c9 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; |