From c56108b8a9a4fb407adf8a08a06dfc87f86350fc Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Wed, 10 May 2023 19:59:33 -0300 Subject: [PATCH] add breaking changes --- docs/references/api/stored_procedures.rst | 39 ----------------------- docs/releases/v11.0.0.rst | 9 ++++-- 2 files changed, 7 insertions(+), 41 deletions(-) diff --git a/docs/references/api/stored_procedures.rst b/docs/references/api/stored_procedures.rst index 64fa86d49..3bb971ab3 100644 --- a/docs/references/api/stored_procedures.rst +++ b/docs/references/api/stored_procedures.rst @@ -415,42 +415,3 @@ You can call overloaded functions with different number of arguments. .. important:: Overloaded functions with the same argument names but different types are not supported. - -.. _bulk_call: - -Bulk Call ---------- - -It's possible to call a function in a bulk way, analogously to :ref:`bulk_insert`. To do this, you need to add the -``Prefer: params=multiple-objects`` header to your request. - -.. tabs:: - - .. code-tab:: http - - POST /rpc/add_them HTTP/1.1 - Content-Type: text/csv - Prefer: params=multiple-objects - - a,b - 1,2 - 3,4 - - .. code-tab:: bash Curl - - curl "http://localhost:3000/rpc/add_them" \ - -X POST -H "Content-Type: text/csv" \ - -H "Prefer: params=multiple-objects" \ - --data-binary @- << EOF - a,b - 1,2 - 3,4 - EOF - -.. code-block:: json - - [ 3, 7 ] - -If you have large payloads to process, it's preferable you instead use a function with an :ref:`array parameter ` or JSON parameter, as this will be more efficient. - -It's also possible to :ref:`Specify Columns ` on functions calls. diff --git a/docs/releases/v11.0.0.rst b/docs/releases/v11.0.0.rst index 2db22b082..83a3a5a94 100644 --- a/docs/releases/v11.0.0.rst +++ b/docs/releases/v11.0.0.rst @@ -13,11 +13,16 @@ Documentation improvements - Split :ref:`authn` into :ref:`db_authz` and :ref:`sql_user_management`. - Split :ref:`admin` into :ref:`intgrs` and :ref:`nginx`. +Bug fixes +--------- + Breaking changes ---------------- -Bug fixes ---------- +- Removed Bulk Call with ``Prefer: params=multiple-objects`` on Stored Procedures. +- To comply with `RFC 9110 `_, the Range header is now only considered on GET. + + Other methods will ignore it and instead should use the ``limit/offset``. + + PUT requests no longer return an error when this header is present (using limit/offset still triggers the error) Thanks ------