提交 fb60e729 编写于 作者: K Kevin Grittner

Revert unnecessary change in MV call to checkRuleResultList().

Due to a misreading of the function's comment block, there was an
unneeded change to a call in rewriteDefine.c.  There is, in fact
no reason to pass false for a MV; it should be true just like a
view.

Fixes issue pointed out by Tom Lane
上级 8d7ff13e
......@@ -356,8 +356,7 @@ DefineQueryRewrite(char *rulename,
*/
checkRuleResultList(query->targetList,
RelationGetDescr(event_relation),
event_relation->rd_rel->relkind !=
RELKIND_MATVIEW);
true);
/*
* ... there must not be another ON SELECT rule already ...
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册