Add database notification functionality and configuration variables for schema reloading

This commit is contained in:
laurenceisla
2021-07-24 16:27:02 -05:00
committed by GitHub
parent 77faf9e9bc
commit 5cbabe4a21
5 changed files with 57 additions and 13 deletions
+18
View File
@@ -39,6 +39,8 @@ db-anon-role String Y
db-pool Int 10
db-pool-timeout Int 10
db-extra-search-path String public
db-channel String pgrst
db-channel-enabled Boolean True
db-prepared-statements Boolean True
db-tx-end String commit
server-host String !4
@@ -135,6 +137,22 @@ db-extra-search-path
Multiple schemas can be added in a comma-separated string, e.g. ``public, extensions``.
.. _db-channel:
db-channel
----------
The name of the notification channel that PostgREST uses for :ref:`schema_reloading` and configuration reloading.
.. _db-channel-enabled:
db-channel-enabled
------------------
When this is set to :code:`true`, the notification channel specified in :ref:`db-channel` is enabled.
You should set this to ``false`` when using PostgresSQL behind a connection pooler such as PgBouncer working in transaction pooling mode. See :ref:`this section <connection_poolers>` for more information.
.. _db-prepared-statements:
db-prepared-statements