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

Commit9e5f1ea

Browse files
committed
Disable pathman for SELECT FOR SHARE/UPDATE clauses on 9.5.
Noticed afterba30201 subpartitions test failed on 9.5.
1 parent43fd918 commit9e5f1ea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎src/hooks.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,15 @@ pathman_rel_pathlist_hook(PlannerInfo *root,
352352
if (root->parse->commandType!=CMD_SELECT&&
353353
root->parse->commandType!=CMD_INSERT)
354354
return;
355+
356+
/* SELECT FOR SHARE/UPDATE is not handled by above check */
357+
foreach(lc,root->rowMarks)
358+
{
359+
PlanRowMark*rc= (PlanRowMark*)lfirst(lc);
360+
361+
if (rc->rti==rti)
362+
return;
363+
}
355364
#endif
356365

357366
/* Skip if this table is not allowed to act as parent (e.g. FROM ONLY) */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp