Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit01b88b4

Browse files
MERGE minor errata
1 parent3af7b2b commit01b88b4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

‎src/backend/executor/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ consists of a super-row that contains all the columns needed by any of the
4242
individual actions, plus CTID and TABLEOID junk columns. The CTID column is
4343
required to know if a matching target row was found or not and the TABLEOID
4444
column is needed to find the underlying target partition, in case when the
45-
target table is apartition table. When a matching target tuple is found, the
46-
CTID column identifies the matching target tuple and we attempt to activate
45+
target table is apartitioned table. When a matching target tuple is found,
46+
theCTID column identifies the matching tuple and we attempt to activate
4747
WHEN MATCHED actions. If a matching tuple is not found, then CTID column is
4848
NULL and we attempt to activate WHEN NOT MATCHED actions. Once we know which
4949
action is activated we form the final result row and apply only those changes.

‎src/backend/executor/execMerge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ExecMerge(ModifyTableState *mtstate, EState *estate, TupleTableSlot *slot,
5151
Datumdatum;
5252
boolisNull;
5353

54-
Assert(resultRelInfo->ri_RelationDesc->rd_rel->relkind||
54+
Assert(resultRelInfo->ri_RelationDesc->rd_rel->relkind==RELKIND_RELATION||
5555
resultRelInfo->ri_RelationDesc->rd_rel->relkind==RELKIND_PARTITIONED_TABLE);
5656

5757
/*

‎src/backend/executor/execPartition.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,7 @@ ExecFindPartition(ResultRelInfo *resultRelInfo, PartitionDispatch *pd,
314314
* Given OID of the partition leaf, return the index of the leaf in the
315315
* partition hierarchy.
316316
*
317-
* NB: This is an O(N) operation. Unfortunately, there are many other problem
318-
* areas with more than a handful partitions, so we don't try to optimise this
319-
* code right now.
317+
* XXX This is an O(N) operation and further optimization would be beneficial
320318
*/
321319
int
322320
ExecFindPartitionByOid(PartitionTupleRouting*proute,Oidpartoid)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp