Skip to content
This repository was archived by the owner on Feb 24, 2024. It is now read-only.

Updates #661

Merged
merged 2 commits into from
Jul 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs/references/api/tables_views.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -685,6 +685,14 @@ If we make a similar request on ``bigtable``, which has 3573458 rows, we would g
HTTP/1.1 206 Partial Content
Content-Range: 0-24/3572000

.. _head_req:

HEAD
----

A HEAD method will behave identically to GET except that no body will be returned (`RFC 2616 <https://datatracker.ietf.org/doc/html/rfc2616#section-9.4>`_) .
As an optimization, the generated query won't execute an aggregate (to avoid unnecessary data transfer).

.. _update:

Update
Expand Down