diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-01-19 12:30:27 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-01-19 12:30:27 -0500 |
commit | 39162b2030fb0a35a6bb28dc636b5a71b8df8d1c (patch) | |
tree | 0f758fff3a427ec001774f0b60b89f7072ee5d16 /src/include/executor/executor.h | |
parent | bec96c82f8ff4fcf7ef0f070f6f7447edf106de3 (diff) |
Fix failure to enforce partitioning contraint for internal partitions.
When a tuple is inherited into a partitioning root, no partition
constraints need to be enforced; when it is inserted into a leaf, the
parent's partitioning quals needed to be enforced. The previous
coding got both of those cases right. When a tuple is inserted into
an intermediate level of the partitioning hierarchy (i.e. a table
which is both a partition itself and in turn partitioned), it must
enforce the partitioning qual inherited from its parent. That case
got overlooked; repair.
Amit Langote
Diffstat (limited to 'src/include/executor/executor.h')
-rw-r--r-- | src/include/executor/executor.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index d424031676f..eb180fdb631 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -189,7 +189,6 @@ extern void CheckValidResultRel(Relation resultRel, CmdType operation); extern void InitResultRelInfo(ResultRelInfo *resultRelInfo, Relation resultRelationDesc, Index resultRelationIndex, - bool load_partition_check, Relation partition_root, int instrument_options); extern ResultRelInfo *ExecGetTriggerResultRel(EState *estate, Oid relid); |