projects
/
postgresql-pgindent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d7ff13
)
Revert unnecessary change in MV call to checkRuleResultList().
author
Kevin Grittner
<
[email protected]
>
Thu, 14 Mar 2013 18:59:52 +0000
(13:59 -0500)
committer
Kevin Grittner
<
[email protected]
>
Thu, 14 Mar 2013 18:59:52 +0000
(13:59 -0500)
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
src/backend/rewrite/rewriteDefine.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/rewrite/rewriteDefine.c
b/src/backend/rewrite/rewriteDefine.c
index 0e265db15c5a307058d7ecdc4999f1f4e60acbe8..ca92fb56417cb44c9f8add3e37bfcf9cd8e57ae8 100644
(file)
--- a/
src/backend/rewrite/rewriteDefine.c
+++ b/
src/backend/rewrite/rewriteDefine.c
@@
-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 ...