Document IS [NOT] OF, which was added in 7.3.
authorBruce Momjian <bruce@momjian.us>
Tue, 20 Feb 2007 00:25:16 +0000 (00:25 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 20 Feb 2007 00:25:16 +0000 (00:25 +0000)
doc/src/sgml/func.sgml
doc/src/sgml/syntax.sgml

index f9f31915051f19103de27e7b9ac565a88825f8c3..a31b06856d75b158ccb06988634c044e96abb9b3 100644 (file)
     <literal>IS NOT NULL</literal>, respectively, except that the input
     expression must be of Boolean type.
    </para>
+   <para>
+    <indexterm>
+     <primary>IS OF</primary>
+    </indexterm>
+    <indexterm>
+     <primary>IS NOT OF</primary>
+    </indexterm>
+    It is possible to check the data type of an expression using the
+    constructs
+<synopsis>
+<replaceable>expression</replaceable> IS OF (typename, ...)
+<replaceable>expression</replaceable> IS NOT OF (typename, ...)
+</synopsis>
+    They return a boolean value based on whether the expression's data
+    type is one of the listed data types.
   </sect1>
 
   <sect1 id="functions-math">
index 2a8bf2728c065547f0d7b1e5f6176be5d86c268e..ea0cb7552c91a4401048f539ac62ab52645855ce 100644 (file)
@@ -847,7 +847,8 @@ SELECT (5 !) - 6;
       <row>
        <entry><token>IS</token></entry>
        <entry></entry>
-       <entry><literal>IS TRUE</>, <literal>IS FALSE</>, <literal>IS UNKNOWN</>, <literal>IS NULL</></entry>
+       <entry><literal>IS TRUE</>, <literal>IS FALSE</>, <literal>IS
+       UNKNOWN</>, <literal>IS NULL</>, <literal>IS OF</></entry>
       </row>
 
       <row>