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

Commitfbbbf4b

Browse files
committed
check layout compatibility between AppendPath and MergeAppendPath
1 parent9476927 commitfbbbf4b

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
@@ -365,8 +365,16 @@ pathman_rel_pathlist_hook(PlannerInfo *root, RelOptInfo *rel, Index rti, RangeTb
365365
ppi,paramsel);
366366
elseif (IsA(cur_path,MergeAppendPath)&&
367367
pg_pathman_enable_runtime_merge_append)
368+
{
369+
/* Check struct layout compatibility */
370+
if (offsetof(AppendPath,subpaths)!=
371+
offsetof(MergeAppendPath,subpaths))
372+
elog(FATAL,"Struct layouts of AppendPath and "
373+
"MergeAppendPath differ");
374+
368375
inner_path=create_runtimemergeappend_path(root,cur_path,
369376
ppi,paramsel);
377+
}
370378

371379
if (inner_path)
372380
add_path(rel,inner_path);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp