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

« back to all changes in this revision

Viewing changes to src/backend/executor/nodeMaterial.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/executor/nodeMaterial.c,v 1.68 2009/04/02 20:59:10 momjian Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/executor/nodeMaterial.c,v 1.69 2009/06/11 14:48:57 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
63
63
                if (node->eflags & EXEC_FLAG_MARK)
64
64
                {
65
65
                        /*
66
 
                         * Allocate a second read pointer to serve as the mark.
67
 
                         * We know it must have index 1, so needn't store that.
 
66
                         * Allocate a second read pointer to serve as the mark. We know it
 
67
                         * must have index 1, so needn't store that.
68
68
                         */
69
 
                        int             ptrno;
 
69
                        int                     ptrno;
70
70
 
71
71
                        ptrno = tuplestore_alloc_read_pointer(tuplestorestate,
72
72
                                                                                                  node->eflags);
185
185
        /*
186
186
         * Tuplestore's interpretation of the flag bits is subtly different from
187
187
         * the general executor meaning: it doesn't think BACKWARD necessarily
188
 
         * means "backwards all the way to start".  If told to support BACKWARD we
 
188
         * means "backwards all the way to start".      If told to support BACKWARD we
189
189
         * must include REWIND in the tuplestore eflags, else tuplestore_trim
190
190
         * might throw away too much.
191
191
         */