From c9adaed79d48632fd4fa898d51a1e8750d360f55 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Fri, 10 Apr 2026 15:14:41 -0500 Subject: [PATCH] docs: target_session_attrs=read-only in libpq>=14 --- docs/references/listener.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/references/listener.rst b/docs/references/listener.rst index 3c380b345..a9a0cfd8b 100644 --- a/docs/references/listener.rst +++ b/docs/references/listener.rst @@ -46,7 +46,9 @@ This will cause the :ref:`connection_pool` to connect to the read replica host a .. note:: - Under the hood, PostgREST forces `target_session_attrs=read-write `_ for the ``LISTEN`` session. + - Under the hood, PostgREST forces `target_session_attrs=read-write `_ for the ``LISTEN`` session. + So if you specify ``target_session_attrs=read-only`` as mentioned above, PostgREST will override it for the ``LISTEN``. + - ``read-only`` is only available on libpq >= 14, if you use a lower version you will get an error like ``invalid target_session_attrs value: \"read-only\"``. .. _listener_automatic_recovery: