From 10dd8df68e6c826186b9900b703051b46ccd6b31 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Wed, 10 May 2006 09:19:54 +0000 Subject: Reduce size of critical section and remove call of user-defined functions in insertion and deletion, modify gistSplit() to do not use buffers. TODO: gistvacuumcleanup and XLOG --- src/backend/access/gist/gistxlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/access/gist/gistxlog.c') diff --git a/src/backend/access/gist/gistxlog.c b/src/backend/access/gist/gistxlog.c index c74762b7df1..a029d8f1ec5 100644 --- a/src/backend/access/gist/gistxlog.c +++ b/src/backend/access/gist/gistxlog.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/gist/gistxlog.c,v 1.15 2006/04/03 16:45:50 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/gist/gistxlog.c,v 1.16 2006/05/10 09:19:54 teodor Exp $ *------------------------------------------------------------------------- */ #include "postgres.h" @@ -625,7 +625,7 @@ gistContinueInsert(gistIncompleteInsert *insert) } } - if (gistnospace(pages[numbuffer - 1], itup, lenitup)) + if (gistnospace(pages[numbuffer - 1], itup, lenitup, InvalidOffsetNumber)) { /* no space left on page, so we must split */ buffers[numbuffer] = ReadBuffer(index, P_NEW); -- cgit v1.2.3