diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2008-10-22 12:53:56 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2008-10-22 12:53:56 +0000 |
commit | b9856b67a7a762ab5bedfafbda4f654797d83996 (patch) | |
tree | cd62a43e225608dfb63cea26407802a4aa608c9a /src/include/access/gist_private.h | |
parent | 361bfc35724aac207f7a013336e058704fbadf60 (diff) | |
download | postgresql-b9856b67a7a762ab5bedfafbda4f654797d83996.tar.gz postgresql-b9856b67a7a762ab5bedfafbda4f654797d83996.zip |
Fix GiST's killing tuple: GISTScanOpaque->curpos wasn't
correctly set. As result, killtuple() marks as dead
wrong tuple on page. Bug was introduced by me while fixing
possible duplicates during GiST index scan.
Diffstat (limited to 'src/include/access/gist_private.h')
-rw-r--r-- | src/include/access/gist_private.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/access/gist_private.h b/src/include/access/gist_private.h index 2d942e54b49..42f9bc76365 100644 --- a/src/include/access/gist_private.h +++ b/src/include/access/gist_private.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/gist_private.h,v 1.34 2008/10/20 13:39:44 teodor Exp $ + * $PostgreSQL: pgsql/src/include/access/gist_private.h,v 1.35 2008/10/22 12:53:56 teodor Exp $ * *------------------------------------------------------------------------- */ @@ -60,7 +60,8 @@ typedef struct GISTSTATE typedef struct ItemResult { - ItemPointerData iptr; + ItemPointerData heapPtr; + OffsetNumber pageOffset; /* offset in index page */ bool recheck; } ItemResult; |