to_jsonb index no longer required on json/jsonb

This commit is contained in:
steve-chavez
2023-07-20 18:09:47 -05:00
committed by Steve Chavez
parent a6aa2adf04
commit 4c4a1de832
+1 -1
View File
@@ -449,7 +449,7 @@ The arrow operators(``->``, ``->>``) can also be used for accessing composite fi
.. important::
When using the ``->`` and ``->>`` operators, PostgREST uses a query like ``to_jsonb(<col>)->'field'``. To make filtering and ordering on those nested fields use an index, the index needs to be created on the same expression, including the ``to_jsonb(...)`` call:
When using the ``->`` and ``->>`` operators on composite and array columns, PostgREST uses a query like ``to_jsonb(<col>)->'field'``. To make filtering and ordering on those nested fields use an index, the index needs to be created on the same expression, including the ``to_jsonb(...)`` call:
.. code-block:: postgres