aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTeodor Sigaev <teodor@sigaev.ru>2005-08-30 07:57:48 +0000
committerTeodor Sigaev <teodor@sigaev.ru>2005-08-30 07:57:48 +0000
commit13ff51baf282ee4bd49036c82625a36007e0f233 (patch)
treea90d22e42dd7d84487ec4935cdc3dbe7c4ff6f50 /src/backend/access/gist/gist.c
parent846ed05de63712fed24fd51043bc308bcd3c2478 (diff)
downloadpostgresql-13ff51baf282ee4bd49036c82625a36007e0f233.tar.gz
postgresql-13ff51baf282ee4bd49036c82625a36007e0f233.zip
Fix missing rows in query
update a=.. where a... with GiST index on column 'a'
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r--src/backend/access/gist/gist.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index 4ff257338f9..75e29473263 100644
--- a/src/backend/access/gist/gist.c
+++ b/src/backend/access/gist/gist.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.112 2004/12/31 21:59:10 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.112.4.1 2005/08/30 07:57:48 teodor Exp $
*
*-------------------------------------------------------------------------
*/
@@ -503,7 +503,7 @@ gistlayerinsert(Relation r, BlockNumber blkno,
* changed beginning from 'child' offset
*/
if (ret & SPLITED)
- gistadjscans(r, GISTOP_SPLIT, blkno, child);
+ gistadjscans(r, GISTOP_SPLIT, nblkno, FirstOffsetNumber);
}
ret = INSERTED;
@@ -1420,6 +1420,9 @@ gistnewroot(Relation r, IndexTuple *itup, int len)
Page p;
b = ReadBuffer(r, GISTP_ROOT);
+
+ gistadjscans(r, GISTOP_SPLIT, GISTP_ROOT, FirstOffsetNumber);
+
GISTInitBuffer(b, 0);
p = BufferGetPage(b);