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

Commit1d11885

Browse files
committed
small fixes regarding the custom_private
1 parent4b216fd commit1d11885

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

‎nodes_common.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pack_runtimeappend_private(CustomScan *cscan, RuntimeAppendPath *path)
150150
pfree(children[i]);
151151
}
152152

153-
/* Save main table and partition relids */
153+
/* Save main table and partition relidsas first element of 'custom_private'*/
154154
custom_private=lappend(custom_private,
155155
list_make2(list_make1_oid(path->relid),
156156
custom_oids));
@@ -197,9 +197,6 @@ unpack_runtimeappend_private(RuntimeAppendState *scan_state, CustomScan *cscan)
197197

198198
scan_state->children_table=children_table;
199199
scan_state->relid=linitial_oid(linitial(runtimeappend_private));
200-
201-
/* Delete items that belong to RuntimeAppend */
202-
cscan->custom_private=list_delete_first(cscan->custom_private);
203200
}
204201

205202
Path*

‎runtime_merge_append.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ pack_runtimemergeappend_private(CustomScan *cscan, MergeAppendGuts *mag)
123123
collations,
124124
nullsFirst));
125125

126+
/* Append RuntimeMergeAppend's data to the 'custom_private' */
126127
cscan->custom_private=lappend(cscan->custom_private,
127128
runtimemergeappend_private);
128129
}
@@ -149,7 +150,12 @@ unpack_runtimemergeappend_private(RuntimeMergeAppendState *scan_state,
149150
*collations,
150151
*nullsFirst;
151152

152-
runtimemergeappend_private=linitial(cscan->custom_private);
153+
/*
154+
* RuntimeMergeAppend node's private data is stored in
155+
* second element of the 'custom_private' list, right after
156+
* the RuntimeAppend node's private data
157+
*/
158+
runtimemergeappend_private=lsecond(cscan->custom_private);
153159
scan_state->numCols=intVal(linitial(runtimemergeappend_private));
154160

155161
sortColIdx=linitial(lsecond(runtimemergeappend_private));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp