diff options
author | Tom Lane | 2022-10-17 16:14:39 +0000 |
---|---|---|
committer | Tom Lane | 2022-10-17 16:14:39 +0000 |
commit | 797e313dc9aed83e28e9f1d08a281ea48c560cd2 (patch) | |
tree | 646bab8274f8cede404f39bfdbec49225663db0d /doc/src/sgml/func.sgml | |
parent | eec34661182db7b79a6b56c551ac1d79ef3e1f89 (diff) |
Reject non-ON-SELECT rules that are named "_RETURN".
DefineQueryRewrite() has long required that ON SELECT rules be named
"_RETURN". But we overlooked the converse case: we should forbid
non-ON-SELECT rules that are named "_RETURN". In particular this
prevents using CREATE OR REPLACE RULE to overwrite a view's _RETURN
rule with some other kind of rule, thereby breaking the view.
Per bug #17646 from Kui Liu. Back-patch to all supported branches.
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'doc/src/sgml/func.sgml')
0 files changed, 0 insertions, 0 deletions