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

Commitda061b4

Browse files
committed
restore previous behaviour for vanilla postgres (pathman_rel_pathlist_hook())
1 parent44e0ebe commitda061b4

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
@@ -8,6 +8,7 @@
88
* ------------------------------------------------------------------------
99
*/
1010

11+
#include"compat/expand_rte_hook.h"
1112
#include"compat/pg_compat.h"
1213
#include"compat/relation_tags.h"
1314
#include"compat/rowmarks_fix.h"
@@ -216,6 +217,13 @@ pathman_rel_pathlist_hook(PlannerInfo *root,
216217
root->parse->resultRelation==rti)
217218
return;
218219

220+
/* It's better to exit, since RowMarks might be broken (hook aims to fix them) */
221+
#ifndefNATIVE_EXPAND_RTE_HOOK
222+
if (root->parse->commandType!=CMD_SELECT&&
223+
root->parse->commandType!=CMD_INSERT)
224+
return;
225+
#endif
226+
219227
/* Skip if this table is not allowed to act as parent (e.g. FROM ONLY) */
220228
if (PARENTHOOD_DISALLOWED==get_rel_parenthood_status(root->parse->queryId,rte))
221229
return;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp