We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents4efb205 +1f6ccf7 commitace45b9Copy full SHA for ace45b9
src/runtime_merge_append.c
@@ -133,12 +133,12 @@ unpack_runtimemergeappend_private(RuntimeMergeAppendState *scan_state,
133
#defineFillStateField(name,type,method) \
134
do \
135
{ \
136
-ListCell *lc; \
137
-inti = 0; \
+ListCell*lc; \
+inti = 0; \
138
Assert(scan_state->numCols == list_length(name)); \
139
-scan_state->name =palloc(scan_state->numCols * sizeof(type)); \
+scan_state->name =palloc0(scan_state->numCols * sizeof(type)); \
140
foreach (lc, name) \
141
-scan_state->name[i] =lfirst_int(lc); \
+scan_state->name[i++] =method(lc); \
142
} \
143
while (0)
144
@@ -225,8 +225,8 @@ create_runtimemergeappend_path(PlannerInfo *root,
225
226
Plan*
227
create_runtimemergeappend_plan(PlannerInfo*root,RelOptInfo*rel,
228
-CustomPath*best_path,List*tlist,
229
-List*clauses,List*custom_plans)
+CustomPath*best_path,List*tlist,
+List*clauses,List*custom_plans)
230
{
231
CustomScan*node;
232
Plan*plan;