diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2006-05-17 16:34:59 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2006-05-17 16:34:59 +0000 |
commit | 8876e37d07baa0041649c5894e948ce65292b714 (patch) | |
tree | 77b929cf6b8099d119e6fe8bb9e435cc74700a98 /src/backend/access/gist/gist.c | |
parent | 815f58407cdd06c39fdbb052a33b61d3e605e7ae (diff) | |
download | postgresql-8876e37d07baa0041649c5894e948ce65292b714.tar.gz postgresql-8876e37d07baa0041649c5894e948ce65292b714.zip |
Reduce size of critial section during vacuum full, critical
sections now isn't nested. All user-defined functions now is
called outside critsections. Small improvements in WAL
protocol.
TODO: improve XLOG replay
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r-- | src/backend/access/gist/gist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index 4ce461d4463..d207b7ecfa7 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.134 2006/05/10 23:18:38 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.135 2006/05/17 16:34:59 teodor Exp $ * *------------------------------------------------------------------------- */ @@ -347,7 +347,7 @@ gistplacetopage(GISTInsertState *state, GISTSTATE *giststate) * Form index tuples vector to split: * remove old tuple if t's needed and add new tuples to vector */ - itvec = gistextractbuffer(state->stack->buffer, &tlen); + itvec = gistextractpage(state->stack->page, &tlen); if ( !is_leaf ) { /* on inner page we should remove old tuple */ int pos = state->stack->childoffnum - FirstOffsetNumber; @@ -501,7 +501,7 @@ gistplacetopage(GISTInsertState *state, GISTSTATE *giststate) } rdata = formUpdateRdata(state->r->rd_node, state->stack->buffer, - offs, noffs, false, + offs, noffs, state->itup, state->ituplen, &(state->key)); @@ -1157,7 +1157,7 @@ gistnewroot(Relation r, Buffer buffer, IndexTuple *itup, int len, ItemPointer ke XLogRecData *rdata; rdata = formUpdateRdata(r->rd_node, buffer, - NULL, 0, false, + NULL, 0, itup, len, key); recptr = XLogInsert(RM_GIST_ID, XLOG_GIST_NEW_ROOT, rdata); |