Skip to content

Commit 34c4dc3

Browse files
committed
Merge branch 'master' into hooking_copy_stmt
2 parents 62f1184 + fbbbf4b commit 34c4dc3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/hooks.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,16 @@ pathman_rel_pathlist_hook(PlannerInfo *root, RelOptInfo *rel, Index rti, RangeTb
367367
ppi, paramsel);
368368
else if (IsA(cur_path, MergeAppendPath) &&
369369
pg_pathman_enable_runtime_merge_append)
370+
{
371+
/* Check struct layout compatibility */
372+
if (offsetof(AppendPath, subpaths) !=
373+
offsetof(MergeAppendPath, subpaths))
374+
elog(FATAL, "Struct layouts of AppendPath and "
375+
"MergeAppendPath differ");
376+
370377
inner_path = create_runtimemergeappend_path(root, cur_path,
371378
ppi, paramsel);
379+
}
372380

373381
if (inner_path)
374382
add_path(rel, inner_path);

0 commit comments

Comments
 (0)