mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
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
This commit is contained in:
@ -356,8 +356,7 @@ DefineQueryRewrite(char *rulename,
|
|||||||
*/
|
*/
|
||||||
checkRuleResultList(query->targetList,
|
checkRuleResultList(query->targetList,
|
||||||
RelationGetDescr(event_relation),
|
RelationGetDescr(event_relation),
|
||||||
event_relation->rd_rel->relkind !=
|
true);
|
||||||
RELKIND_MATVIEW);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ... there must not be another ON SELECT rule already ...
|
* ... there must not be another ON SELECT rule already ...
|
||||||
|
Reference in New Issue
Block a user