mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Update reference documentation on may/can/might:
Standard English uses "may", "can", and "might" in different ways: may - permission, "You may borrow my rake." can - ability, "I can lift that log." might - possibility, "It might rain today." Unfortunately, in conversational English, their use is often mixed, as in, "You may use this variable to do X", when in fact, "can" is a better choice. Similarly, "It may crash" is better stated, "It might crash".
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.48 2006/09/16 00:30:17 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.49 2007/01/31 23:26:03 momjian Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@@ -136,9 +136,9 @@ CREATE [ OR REPLACE ] RULE <replaceable class="parameter">name</replaceable> AS
|
||||
<listitem>
|
||||
<para>
|
||||
Any <acronym>SQL</acronym> conditional expression (returning
|
||||
<type>boolean</type>). The condition expression may not refer
|
||||
<type>boolean</type>). The condition expression cannot refer
|
||||
to any tables except <literal>NEW</> and <literal>OLD</>, and
|
||||
may not contain aggregate functions.
|
||||
can not contain aggregate functions.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -186,7 +186,7 @@ CREATE [ OR REPLACE ] RULE <replaceable class="parameter">name</replaceable> AS
|
||||
<para>
|
||||
Within <replaceable class="parameter">condition</replaceable> and
|
||||
<replaceable class="parameter">command</replaceable>, the special
|
||||
table names <literal>NEW</literal> and <literal>OLD</literal> may
|
||||
table names <literal>NEW</literal> and <literal>OLD</literal> can
|
||||
be used to refer to values in the referenced table.
|
||||
<literal>NEW</literal> is valid in <literal>ON INSERT</literal> and
|
||||
<literal>ON UPDATE</literal> rules to refer to the new row being
|
||||
@@ -257,7 +257,7 @@ UPDATE mytable SET name = 'foo' WHERE id = 42;
|
||||
one <command>NOTIFY</command> event will be sent during the
|
||||
<command>UPDATE</command>, whether or not there are any rows that
|
||||
match the condition <literal>id = 42</literal>. This is an
|
||||
implementation restriction that may be fixed in future releases.
|
||||
implementation restriction that might be fixed in future releases.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
Reference in New Issue
Block a user