Skip to content

Commit d2a986b

Browse files
committed
Document that jsonb has all the standard comparison operators.
1 parent 8f889b1 commit d2a986b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/src/sgml/func.sgml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10159,8 +10159,14 @@ table2-mapping
1015910159
</para>
1016010160
</note>
1016110161
<para>
10162-
In addition to those operators common to both types, some additional
10163-
operators exist only for <type>jsonb</type>, as shown
10162+
The standard comparison operators shown in <xref
10163+
linkend="functions-comparison-table"> are available for
10164+
<type>jsonb</type>, but not for <type>json</type>. They follow the
10165+
ordering rules for btree operations outlined at <xref
10166+
linkend="json-indexing">.
10167+
</para>
10168+
<para>
10169+
Some further operators also exist only for <type>jsonb</type>, as shown
1016410170
in <xref linkend="functions-jsonb-op-table">.
1016510171
Many of these operators can be indexed by
1016610172
<type>jsonb</> operator classes. For a full description of
@@ -10181,12 +10187,6 @@ table2-mapping
1018110187
</row>
1018210188
</thead>
1018310189
<tbody>
10184-
<row>
10185-
<entry><literal>=</literal></entry>
10186-
<entry><type>jsonb</type></entry>
10187-
<entry>Are the two JSON values equal?</entry>
10188-
<entry><literal>'[1,2,3]'::jsonb = '[1,2,3]'::jsonb</literal></entry>
10189-
</row>
1019010190
<row>
1019110191
<entry><literal>@&gt;</literal></entry>
1019210192
<entry><type>jsonb</type></entry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy