]> granicus.if.org Git - postgresql/commitdiff
doc: document "IS NOT DOCUMENT"
authorBruce Momjian <bruce@momjian.us>
Fri, 30 Mar 2018 14:39:48 +0000 (10:39 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 30 Mar 2018 14:39:48 +0000 (10:39 -0400)
Reported-by: scott.ure@caseware.com
Discussion: https://postgr.es/m/152056505045.4963.16783351661813640274@wrigleys.postgresql.org

Author: Euler Taveira

Backpatch-through: 10

doc/src/sgml/func.sgml

index 887a7cb764ae2ac83eadc6e98f14cacfde3a995f..21d22869e84f607913ec0899afa4b7cc93c92753 100644 (file)
@@ -10310,6 +10310,24 @@ SELECT xmlagg(x) FROM (SELECT * FROM test ORDER BY y DESC) AS tab;
     </para>
    </sect3>
 
+   <sect3>
+    <title><literal>IS NOT DOCUMENT</literal></title>
+
+    <indexterm>
+     <primary>IS NOT DOCUMENT</primary>
+    </indexterm>
+
+<synopsis>
+<replaceable>xml</replaceable> IS NOT DOCUMENT
+</synopsis>
+
+    <para>
+     The expression <literal>IS NOT DOCUMENT</literal> returns false if the
+     argument XML value is a proper XML document, true if it is not (that is,
+     it is a content fragment), or null if the argument is null.
+    </para>
+   </sect3>
+
    <sect3 id="xml-exists">
     <title><literal>XMLEXISTS</literal></title>