diff options
author | Neil Conway <neilc@samurai.com> | 2005-05-20 01:37:08 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2005-05-20 01:37:08 +0000 |
commit | ee85870e2330c6ba23197182a2c507c0de74026c (patch) | |
tree | 6af16d6a664a00515cecbb06dc19bfee18aeedc4 | |
parent | f3567eeaf2423c933166edff320ab1a7093f1ac4 (diff) | |
download | postgresql-ee85870e2330c6ba23197182a2c507c0de74026c.tar.gz postgresql-ee85870e2330c6ba23197182a2c507c0de74026c.zip |
Make the CREATE RULE syntax description in rules.sgml more consistent
with the syntax description in the CREATE RULE reference page. From
Kris Jurka.
-rw-r--r-- | doc/src/sgml/rules.sgml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/rules.sgml b/doc/src/sgml/rules.sgml index 1ef7b29adbc..f47ac77e69c 100644 --- a/doc/src/sgml/rules.sgml +++ b/doc/src/sgml/rules.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/rules.sgml,v 1.41 2005/01/29 23:45:36 tgl Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/rules.sgml,v 1.42 2005/05/20 01:37:08 neilc Exp $ --> <chapter id="rules"> <title>The Rule System</title> @@ -902,9 +902,9 @@ SELECT t1.a, t2.b, t1.ctid FROM t1, t2 WHERE t1.a = t2.a; Keep the syntax <programlisting> -CREATE RULE <replaceable>rule_name</> AS ON <replaceable>event</> - TO <replaceable>object</> [WHERE <replaceable>rule_qualification</>] - DO [ALSO|INSTEAD] [<replaceable>action</> | (<replaceable>actions</>) | NOTHING]; +CREATE [ OR REPLACE ] RULE <replaceable class="parameter">name</replaceable> AS ON <replaceable class="parameter">event</replaceable> + TO <replaceable class="parameter">table</replaceable> [ WHERE <replaceable class="parameter">condition</replaceable> ] + DO [ ALSO | INSTEAD ] { NOTHING | <replaceable class="parameter">command</replaceable> | ( <replaceable class="parameter">command</replaceable> ; <replaceable class="parameter">command</replaceable> ... ) } </programlisting> in mind. |