pgsql-server/src/backend/access/nbtree nbtinsert.c

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/backend/access/nbtree nbtinsert.c
Date: 2003-09-02 22:10:17
Message-ID: 20030902221017.4F9EBD1B8AA@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl(at)svr1(dot)postgresql(dot)org 03/09/02 19:10:17

Modified files:
src/backend/access/nbtree: nbtinsert.c

Log message:
In _bt_check_unique() loop, don't bother applying _bt_isequal() to
killed items; just skip to the next item immediately. Only check for
key equality when we reach a non-killed item or the end of the index
page. This saves key comparisons when there are lots of killed items,
as for example in a heavily-updated table that's not been vacuumed lately.
Seems to be a win for pgbench anyway.

Browse pgsql-committers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-09-03 02:36:04 Re: pgsql-server/src/backend bootstrap/bootstrap.c ...
Previous Message Peter Eisentraut - PostgreSQL 2003-09-02 21:45:38 pgsql-server/src/interfaces/cli example1.c exa ...