~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to src/backend/utils/adt/tsgistidx.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:
7
7
 *
8
8
 *
9
9
 * IDENTIFICATION
10
 
 *        $PostgreSQL: pgsql/src/backend/utils/adt/tsgistidx.c,v 1.10 2009/01/01 17:23:50 momjian Exp $
 
10
 *        $PostgreSQL: pgsql/src/backend/utils/adt/tsgistidx.c,v 1.11 2009/06/11 14:49:04 momjian Exp $
11
11
 *
12
12
 *-------------------------------------------------------------------------
13
13
 */
307
307
 
308
308
        /* Loop invariant: StopLow <= val < StopHigh */
309
309
 
310
 
        /* 
311
 
         * we are not able to find a a prefix by hash value 
 
310
        /*
 
311
         * we are not able to find a a prefix by hash value
312
312
         */
313
 
        if ( val->prefix )
 
313
        if (val->prefix)
314
314
                return true;
315
315
 
316
316
        while (StopLow < StopHigh)
330
330
static bool
331
331
checkcondition_bit(void *checkval, QueryOperand *val)
332
332
{
333
 
        /* 
334
 
         * we are not able to find a a prefix in signature tree 
 
333
        /*
 
334
         * we are not able to find a a prefix in signature tree
335
335
         */
336
 
        if ( val->prefix )
337
 
                return true; 
 
336
        if (val->prefix)
 
337
                return true;
338
338
        return GETBIT(checkval, HASHVAL(val->valcrc));
339
339
}
340
340
 
343
343
{
344
344
        GISTENTRY  *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
345
345
        TSQuery         query = PG_GETARG_TSQUERY(1);
 
346
 
346
347
        /* StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2); */
347
348
        /* Oid          subtype = PG_GETARG_OID(3); */
348
349
        bool       *recheck = (bool *) PG_GETARG_POINTER(4);