From e0b0e988166d961142d220d1ec54a8d695b76f6c Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Thu, 11 May 2023 00:59:10 -0300 Subject: [PATCH] add impersonated settings --- docs/references/transactions.rst | 12 ++++++++++++ docs/releases/v11.0.0.rst | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/docs/references/transactions.rst b/docs/references/transactions.rst index 45a17b1cc..1fc43360d 100644 --- a/docs/references/transactions.rst +++ b/docs/references/transactions.rst @@ -102,6 +102,18 @@ Because of :ref:`user_impersonation`, PostgREST sets the standard ``role``. You Additionally it also sets the ``search_path`` based on :ref:`db-schemas` and :ref:`db-extra-search-path`. +.. _impersonated_settings: + +Impersonated Role Settings +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The :ref:`Impersonated Role ` settings are applied. For example, if you do: + +.. code-block:: postgresql + + ALTER ROLE webuser SET statement_timeout TO '5s'; + +Every ``webuser`` request gets its queries executed with a ``statement_timeout`` of 5 seconds. .. _guc_req_headers_cookies_claims: diff --git a/docs/releases/v11.0.0.rst b/docs/releases/v11.0.0.rst index b24e61fa4..bdccd0b0f 100644 --- a/docs/releases/v11.0.0.rst +++ b/docs/releases/v11.0.0.rst @@ -4,6 +4,11 @@ Features -------- +Transactions +~~~~~~~~~~~~ + +- New :ref:`impersonated_settings`. + Inserts ~~~~~~~