Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
01b88b4d
Commit
01b88b4d
authored
Apr 05, 2018
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MERGE minor errata
parent
3af7b2b0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
src/backend/executor/README
src/backend/executor/README
+2
-2
src/backend/executor/execMerge.c
src/backend/executor/execMerge.c
+1
-1
src/backend/executor/execPartition.c
src/backend/executor/execPartition.c
+1
-3
No files found.
src/backend/executor/README
View file @
01b88b4d
...
...
@@ -42,8 +42,8 @@ consists of a super-row that contains all the columns needed by any of the
individual actions, plus CTID and TABLEOID junk columns. The CTID column is
required to know if a matching target row was found or not and the TABLEOID
column is needed to find the underlying target partition, in case when the
target table is a partition
table. When a matching target tuple is found, the
CTID column identifies the matching target
tuple and we attempt to activate
target table is a partition
ed table. When a matching target tuple is found,
the CTID column identifies the matching
tuple and we attempt to activate
WHEN MATCHED actions. If a matching tuple is not found, then CTID column is
NULL and we attempt to activate WHEN NOT MATCHED actions. Once we know which
action is activated we form the final result row and apply only those changes.
...
...
src/backend/executor/execMerge.c
View file @
01b88b4d
...
...
@@ -51,7 +51,7 @@ ExecMerge(ModifyTableState *mtstate, EState *estate, TupleTableSlot *slot,
Datum
datum
;
bool
isNull
;
Assert
(
resultRelInfo
->
ri_RelationDesc
->
rd_rel
->
relkind
||
Assert
(
resultRelInfo
->
ri_RelationDesc
->
rd_rel
->
relkind
==
RELKIND_RELATION
||
resultRelInfo
->
ri_RelationDesc
->
rd_rel
->
relkind
==
RELKIND_PARTITIONED_TABLE
);
/*
...
...
src/backend/executor/execPartition.c
View file @
01b88b4d
...
...
@@ -314,9 +314,7 @@ ExecFindPartition(ResultRelInfo *resultRelInfo, PartitionDispatch *pd,
* Given OID of the partition leaf, return the index of the leaf in the
* partition hierarchy.
*
* NB: This is an O(N) operation. Unfortunately, there are many other problem
* areas with more than a handful partitions, so we don't try to optimise this
* code right now.
* XXX This is an O(N) operation and further optimization would be beneficial
*/
int
ExecFindPartitionByOid
(
PartitionTupleRouting
*
proute
,
Oid
partoid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment