From: Peter Eisentraut Date: Mon, 4 Aug 2003 14:00:14 +0000 (+0000) Subject: Add a note that AND and OR are commutative. Apparently, they are not in X-Git-Tag: REL9_0_0~14740 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3766e99c418d6211254acd580fa9d388ea4af2dd;p=pg-rex%2Fsyncrep.git Add a note that AND and OR are commutative. Apparently, they are not in certain other products. --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 59d308913c..f06f289d2d 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -162,6 +162,14 @@ PostgreSQL documentation + + + The operators AND and OR are + commutative, that is, you can switch the left and right operand + without affecting the result. But see for more information about the + order of evaluation of subexpressions. + diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index 372aca2ca7..8d23a3e354 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1,5 +1,5 @@ @@ -1216,7 +1216,7 @@ SELECT name, (SELECT max(pop) FROM cities WHERE cities.state = states.name) - + Expression Evaluation