mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
TOAST
WARNING: This is actually broken - we have self-deadlocks due to concurrent changes in buffer management. Vadim and me are working on it. Jan
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.59 2000/06/17 23:41:12 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.60 2000/07/03 23:09:11 wieck Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -546,7 +546,7 @@ gistAdjustKeys(Relation r,
|
||||
oldud += sizeof(IndexTupleData);
|
||||
|
||||
evec = (bytea *) palloc(2 * sizeof(GISTENTRY) + VARHDRSZ);
|
||||
VARSIZE(evec) = 2 * sizeof(GISTENTRY) + VARHDRSZ;
|
||||
VARATT_SIZEP(evec) = 2 * sizeof(GISTENTRY) + VARHDRSZ;
|
||||
|
||||
/* insert decompressed oldud into entry vector */
|
||||
gistdentryinit(giststate, &((GISTENTRY *) VARDATA(evec))[0],
|
||||
@ -741,7 +741,7 @@ gistSplit(Relation r,
|
||||
else
|
||||
decompvec[maxoff + 1] = FALSE;
|
||||
|
||||
VARSIZE(entryvec) = (maxoff + 2) * sizeof(GISTENTRY) + VARHDRSZ;
|
||||
VARATT_SIZEP(entryvec) = (maxoff + 2) * sizeof(GISTENTRY) + VARHDRSZ;
|
||||
|
||||
/* now let the user-defined picksplit function set up the split vector */
|
||||
FunctionCall2(&giststate->picksplitFn,
|
||||
|
Reference in New Issue
Block a user