~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to src/backend/access/nbtree/nbtinsert.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.169 2009/01/01 17:23:35 momjian Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.170 2009/06/11 14:48:54 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
374
374
 *              removing any LP_DEAD tuples.
375
375
 *
376
376
 *              On entry, *buf and *offsetptr point to the first legal position
377
 
 *              where the new tuple could be inserted.  The caller should hold an
 
377
 *              where the new tuple could be inserted.  The caller should hold an
378
378
 *              exclusive lock on *buf.  *offsetptr can also be set to
379
379
 *              InvalidOffsetNumber, in which case the function will search for the
380
380
 *              right location within the page if needed.  On exit, they point to the
951
951
                sopaque = (BTPageOpaque) PageGetSpecialPointer(spage);
952
952
                if (sopaque->btpo_prev != ropaque->btpo_prev)
953
953
                        elog(PANIC, "right sibling's left-link doesn't match: "
954
 
                                 "block %u links to %u instead of expected %u in index \"%s\"",
 
954
                           "block %u links to %u instead of expected %u in index \"%s\"",
955
955
                                 ropaque->btpo_next, sopaque->btpo_prev, ropaque->btpo_prev,
956
956
                                 RelationGetRelationName(rel));
957
957