diff options
| author | Tom Lane | 2010-03-30 21:58:11 +0000 |
|---|---|---|
| committer | Tom Lane | 2010-03-30 21:58:11 +0000 |
| commit | d174a4adbb7423ee5ff30aa98043db4521ffd1be (patch) | |
| tree | ddbcea5d50df5337bcfc6c5969232b2e492a71de /src/include | |
| parent | 2a77355ea1e53bc234ed0b5fda8ec9f304f6797a (diff) | |
Fix "constraint_exclusion = partition" logic so that it will also attempt
constraint exclusion on an inheritance set that is the target of an UPDATE
or DELETE query. Per gripe from Marc Cousin. Back-patch to 8.4 where
the feature was introduced.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/nodes/relation.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h index 45cb17c52b8..bdee19cc3a9 100644 --- a/src/include/nodes/relation.h +++ b/src/include/nodes/relation.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/relation.h,v 1.185 2010/03/28 22:59:33 tgl Exp $ + * $PostgreSQL: pgsql/src/include/nodes/relation.h,v 1.186 2010/03/30 21:58:11 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -197,6 +197,8 @@ typedef struct PlannerInfo double tuple_fraction; /* tuple_fraction passed to query_planner */ + bool hasInheritedTarget; /* true if parse->resultRelation is an + * inheritance child rel */ bool hasJoinRTEs; /* true if any RTEs are RTE_JOIN kind */ bool hasHavingQual; /* true if havingQual was non-null */ bool hasPseudoConstantQuals; /* true if any RestrictInfo has |
