]> granicus.if.org Git - postgresql/commitdiff
Document that jsonb has all the standard comparison operators.
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 18 Jun 2014 19:16:48 +0000 (15:16 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 18 Jun 2014 19:16:48 +0000 (15:16 -0400)
doc/src/sgml/func.sgml

index 5c906f36732ce809491fcb082f43bbe427b48d29..1657a32eb3cbe1c0fb665f2100cdb32279f982ed 100644 (file)
@@ -10159,8 +10159,14 @@ table2-mapping
    </para>
   </note>
   <para>
-   In addition to those operators common to both types, some additional
-   operators exist only for <type>jsonb</type>, as shown
+   The standard comparison operators shown in  <xref
+   linkend="functions-comparison-table"> are available for 
+   <type>jsonb</type>, but not for <type>json</type>. They follow the 
+   ordering rules for btree operations outlined at <xref
+   linkend="json-indexing">.
+  </para>
+  <para>
+   Some further operators also exist only for <type>jsonb</type>, as shown
    in <xref linkend="functions-jsonb-op-table">.
    Many of these operators can be indexed by
    <type>jsonb</> operator classes.  For a full description of
@@ -10181,12 +10187,6 @@ table2-mapping
        </row>
       </thead>
       <tbody>
-       <row>
-        <entry><literal>=</literal></entry>
-        <entry><type>jsonb</type></entry>
-        <entry>Are the two JSON values equal?</entry>
-        <entry><literal>'[1,2,3]'::jsonb = '[1,2,3]'::jsonb</literal></entry>
-       </row>
        <row>
         <entry><literal>@&gt;</literal></entry>
         <entry><type>jsonb</type></entry>