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

« back to all changes in this revision

Viewing changes to src/backend/access/common/indextuple.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:
9
9
 *
10
10
 *
11
11
 * IDENTIFICATION
12
 
 *        $PostgreSQL: pgsql/src/backend/access/common/indextuple.c,v 1.87 2009/01/01 17:23:34 momjian Exp $
 
12
 *        $PostgreSQL: pgsql/src/backend/access/common/indextuple.c,v 1.88 2009/06/11 14:48:53 momjian Exp $
13
13
 *
14
14
 *-------------------------------------------------------------------------
15
15
 */
86
86
                 * try to compress it in-line.
87
87
                 */
88
88
                if (!VARATT_IS_EXTENDED(DatumGetPointer(untoasted_values[i])) &&
89
 
                        VARSIZE(DatumGetPointer(untoasted_values[i])) > TOAST_INDEX_TARGET &&
 
89
                VARSIZE(DatumGetPointer(untoasted_values[i])) > TOAST_INDEX_TARGET &&
90
90
                        (att->attstorage == 'x' || att->attstorage == 'm'))
91
91
                {
92
92
                        Datum           cvalue = toast_compress_datum(untoasted_values[i]);
270
270
                 * Now check to see if any preceding bits are null...
271
271
                 */
272
272
                {
273
 
                        int                     byte = attnum >> 3;
 
273
                        int byte = attnum >> 3;
274
274
                        int                     finalbit = attnum & 0x07;
275
275
 
276
276
                        /* check for nulls "before" final bit of last byte */