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

« back to all changes in this revision

Viewing changes to contrib/hstore/hstore_gin.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:
1
1
/*
2
 
 * $PostgreSQL: pgsql/contrib/hstore/hstore_gin.c,v 1.5 2009/03/25 22:19:01 tgl Exp $
 
2
 * $PostgreSQL: pgsql/contrib/hstore/hstore_gin.c,v 1.6 2009/06/11 14:48:51 momjian Exp $
3
3
 */
4
4
#include "postgres.h"
5
5
 
122
122
        bool       *check = (bool *) PG_GETARG_POINTER(0);
123
123
        StrategyNumber strategy = PG_GETARG_UINT16(1);
124
124
        HStore     *query = PG_GETARG_HS(2);
 
125
 
125
126
        /* int32        nkeys = PG_GETARG_INT32(3); */
126
127
        /* Pointer         *extra_data = (Pointer *) PG_GETARG_POINTER(4); */
127
128
        bool       *recheck = (bool *) PG_GETARG_POINTER(5);
132
133
                int                     i;
133
134
 
134
135
                /*
135
 
                 * Index lost information about correspondence of keys
136
 
                 * and values, so we need recheck
 
136
                 * Index lost information about correspondence of keys and values, so
 
137
                 * we need recheck
137
138
                 */
138
139
                *recheck = true;
139
140
                for (i = 0; res && i < 2 * query->size; i++)