summaryrefslogtreecommitdiff
path: root/doc/src/sgml/rules.sgml
diff options
context:
space:
mode:
authorDean Rasheed2024-03-04 10:48:40 +0000
committerDean Rasheed2024-03-04 10:48:40 +0000
commit8545b28679a2ec2aa66ad2ec81f17019dab5d780 (patch)
treeb8c2c708fcf1436d4f1977c970d272dbb3090be7 /doc/src/sgml/rules.sgml
parent0cf79a7f6801d3e69de6450d585e385a4064b057 (diff)
Fix doc omission for MERGE into updatable views.
Commit 5f2e179bd3 missed one place in rules.sgml that should have mentioned MERGE. Also, be more specific when saying that MERGE doesn't support rules, since it does support SELECT rules.
Diffstat (limited to 'doc/src/sgml/rules.sgml')
-rw-r--r--doc/src/sgml/rules.sgml6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/sgml/rules.sgml b/doc/src/sgml/rules.sgml
index 784c16e76ea..7a928bd7b90 100644
--- a/doc/src/sgml/rules.sgml
+++ b/doc/src/sgml/rules.sgml
@@ -859,7 +859,8 @@ SELECT t1.a, t2.b, t1.ctid FROM t1, t2 WHERE t1.a = t2.a;
a view. These rules will rewrite the command, typically into a command
that updates one or more tables, rather than views. That is the topic
of <xref linkend="rules-update"/>. Note that this will not work with
- <command>MERGE</command>, which currently does not support rules.
+ <command>MERGE</command>, which currently does not support rules on
+ the target relation other than <command>SELECT</command> rules.
</para>
<para>
@@ -873,7 +874,8 @@ SELECT t1.a, t2.b, t1.ctid FROM t1, t2 WHERE t1.a = t2.a;
<para>
Automatic rewriting of an <command>INSERT</command>,
- <command>UPDATE</command>, or <command>DELETE</command> query on a
+ <command>UPDATE</command>, <command>DELETE</command>, or
+ <command>MERGE</command> query on a
simple view is always tried last. Therefore, if a view has rules or
triggers, they will override the default behavior of automatically
updatable views.