We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43fd918 commit 9e5f1eaCopy full SHA for 9e5f1ea
src/hooks.c
@@ -352,6 +352,15 @@ pathman_rel_pathlist_hook(PlannerInfo *root,
352
if (root->parse->commandType != CMD_SELECT &&
353
root->parse->commandType != CMD_INSERT)
354
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
+ }
364
#endif
365
366
/* Skip if this table is not allowed to act as parent (e.g. FROM ONLY) */
0 commit comments