From: Marko Kreen Date: Tue, 20 Dec 2016 10:39:25 +0000 (+0200) Subject: doc: auth_query - mention that function is run in target db X-Git-Tag: pgbouncer_1_8~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15c026cbd61dcd9658200014266243ab734ae08d;p=pgbouncer doc: auth_query - mention that function is run in target db --- diff --git a/doc/config.rst b/doc/config.rst index 8f836f6..49750a1 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -144,6 +144,9 @@ Query to load user's password from database. Direct access to pg_shadow requires admin rights. It's preferable to use non-admin user that calls SECURITY DEFINER function instead. +Note that the query is run inside target database, so if a function +is used it needs to be installed into each database. + Default: ``SELECT usename, passwd FROM pg_shadow WHERE usename=$1`` pool_mode