~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

Viewing changes to src/backend/access/gist/gistutil.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
 * Portions Copyright (c) 1994, Regents of the University of California
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *                      $PostgreSQL: pgsql/src/backend/access/gist/gistutil.c,v 1.33 2009/01/05 17:14:28 alvherre Exp $
 
11
 *                      $PostgreSQL: pgsql/src/backend/access/gist/gistutil.c,v 1.34 2009/06/11 14:48:53 momjian Exp $
12
12
 *-------------------------------------------------------------------------
13
13
 */
14
14
#include "postgres.h"
43
43
 
44
44
        for (i = 0; i < len; i++)
45
45
        {
46
 
                Size sz = IndexTupleSize(itup[i]);
 
46
                Size            sz = IndexTupleSize(itup[i]);
 
47
 
47
48
                l = PageAddItem(page, (Item) itup[i], sz, off, false, false);
48
49
                if (l == InvalidOffsetNumber)
49
50
                        elog(ERROR, "failed to add item to GiST index page, item %d out of %d, size %d bytes",