*** pgsql/src/backend/access/gist/gistutil.c 2008/05/12 00:00:44 1.26 --- pgsql/src/backend/access/gist/gistutil.c 2008/06/12 09:12:29 1.27 *************** *** 8,14 **** * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/access/gist/gistutil.c,v 1.25 2008/01/01 19:45:46 momjian Exp $ *------------------------------------------------------------------------- */ #include "postgres.h" --- 8,14 ---- * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/access/gist/gistutil.c,v 1.26 2008/05/12 00:00:44 alvherre Exp $ *------------------------------------------------------------------------- */ #include "postgres.h" *************** static Datum attrS[INDEX_MAX_KEYS]; *** 27,37 **** static bool isnullS[INDEX_MAX_KEYS]; /* ! * Write itup vector to page, has no control of free space */ ! OffsetNumber ! gistfillbuffer(Relation r, Page page, IndexTuple *itup, ! int len, OffsetNumber off) { OffsetNumber l = InvalidOffsetNumber; int i; --- 27,36 ---- static bool isnullS[INDEX_MAX_KEYS]; /* ! * Write itup vector to page, has no control of free space. */ ! void ! gistfillbuffer(Page page, IndexTuple *itup, int len, OffsetNumber off) { OffsetNumber l = InvalidOffsetNumber; int i; *************** gistfillbuffer(Relation r, Page page, In *** 42,55 **** for (i = 0; i < len; i++) { ! l = PageAddItem(page, (Item) itup[i], IndexTupleSize(itup[i]), ! off, false, false); if (l == InvalidOffsetNumber) ! elog(ERROR, "failed to add item to index page in \"%s\"", ! RelationGetRelationName(r)); off++; } - return l; } /* --- 41,53 ---- for (i = 0; i < len; i++) { ! Size sz = IndexTupleSize(itup[i]); ! l = PageAddItem(page, (Item) itup[i], sz, off, false, false); if (l == InvalidOffsetNumber) ! elog(ERROR, "failed to add item to GiST index page, item %d out of %d, size %d bytes", ! i, len, sz); off++; } } /*