diff options
| author | Tom Lane | 2006-02-04 23:03:20 +0000 |
|---|---|---|
| committer | Tom Lane | 2006-02-04 23:03:20 +0000 |
| commit | 3893127431b41a3341ac5ff9611c7ea0215b9110 (patch) | |
| tree | 7d15367f9f19df8f39b1b5c00b4c33aaed1025d7 /src/include/optimizer | |
| parent | 48d9ad372251d188bcb0a733e875018a5f1f3503 (diff) | |
Fix constraint exclusion to work in inherited UPDATE/DELETE queries
... in fact, it will be applied now in any query whatsoever. I'm still
a bit concerned about the cycles that might be expended in failed proof
attempts, but given that CE is turned off by default, it's the user's
choice whether to expend those cycles or not. (Possibly we should
change the simple bool constraint_exclusion parameter to something
more fine-grained?)
Diffstat (limited to 'src/include/optimizer')
| -rw-r--r-- | src/include/optimizer/plancat.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/optimizer/plancat.h b/src/include/optimizer/plancat.h index 8a4c1e4941..888105605b 100644 --- a/src/include/optimizer/plancat.h +++ b/src/include/optimizer/plancat.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/optimizer/plancat.h,v 1.37 2005/07/23 21:05:48 tgl Exp $ + * $PostgreSQL: pgsql/src/include/optimizer/plancat.h,v 1.38 2006/02/04 23:03:20 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -19,7 +19,8 @@ extern void get_relation_info(Oid relationObjectId, RelOptInfo *rel); -extern List *get_relation_constraints(Oid relationObjectId, RelOptInfo *rel); +extern bool relation_excluded_by_constraints(RelOptInfo *rel, + RangeTblEntry *rte); extern List *build_physical_tlist(PlannerInfo *root, RelOptInfo *rel); |
