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

« back to all changes in this revision

Viewing changes to src/backend/optimizer/util/restrictinfo.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/optimizer/util/restrictinfo.c,v 1.59 2009/05/09 22:51:41 tgl Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/optimizer/util/restrictinfo.c,v 1.60 2009/06/11 14:48:59 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
593
593
                 * OK because we're only trying to prove we can dispense with some
594
594
                 * join quals; failing to prove that doesn't result in an incorrect
595
595
                 * plan.  It's quite unlikely that a join qual could be proven
596
 
                 * redundant by an index predicate anyway.  (Also, if we did manage
597
 
                 * to prove it, we'd have to have a special case for update targets;
598
 
                 * see notes about EvalPlanQual testing in create_indexscan_plan().)
 
596
                 * redundant by an index predicate anyway.      (Also, if we did manage to
 
597
                 * prove it, we'd have to have a special case for update targets; see
 
598
                 * notes about EvalPlanQual testing in create_indexscan_plan().)
599
599
                 */
600
600
                BitmapHeapPath *innerpath = (BitmapHeapPath *) inner_path;
601
601
 
614
614
        }
615
615
 
616
616
        /*
617
 
         * XXX the inner path of a nestloop could also be an append relation
618
 
         * whose elements use join quals.  However, they might each use different
619
 
         * quals; we could only remove join quals that are enforced by all the
620
 
         * appendrel members.  For the moment we don't bother to try.
 
617
         * XXX the inner path of a nestloop could also be an append relation whose
 
618
         * elements use join quals.  However, they might each use different quals;
 
619
         * we could only remove join quals that are enforced by all the appendrel
 
620
         * members.  For the moment we don't bother to try.
621
621
         */
622
622
 
623
623
        return restrictinfo_list;