mirror of
https://github.com/postgres/postgres.git
synced 2025-06-01 00:01:20 -04:00
Document that jsonb has all the standard comparison operators.
This commit is contained in:
parent
8f889b1083
commit
d2a986b74a
@ -10159,8 +10159,14 @@ table2-mapping
|
|||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
<para>
|
<para>
|
||||||
In addition to those operators common to both types, some additional
|
The standard comparison operators shown in <xref
|
||||||
operators exist only for <type>jsonb</type>, as shown
|
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">.
|
in <xref linkend="functions-jsonb-op-table">.
|
||||||
Many of these operators can be indexed by
|
Many of these operators can be indexed by
|
||||||
<type>jsonb</> operator classes. For a full description of
|
<type>jsonb</> operator classes. For a full description of
|
||||||
@ -10181,12 +10187,6 @@ table2-mapping
|
|||||||
</row>
|
</row>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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>
|
<row>
|
||||||
<entry><literal>@></literal></entry>
|
<entry><literal>@></literal></entry>
|
||||||
<entry><type>jsonb</type></entry>
|
<entry><type>jsonb</type></entry>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user