add impersonated settings
This commit is contained in:
committed by
Steve Chavez
parent
ea7a2bd531
commit
e0b0e98816
@@ -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`.
|
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 <user_impersonation>` 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:
|
.. _guc_req_headers_cookies_claims:
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
Features
|
Features
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
Transactions
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- New :ref:`impersonated_settings`.
|
||||||
|
|
||||||
Inserts
|
Inserts
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user