Default: ``SELECT usename, passwd FROM pg_shadow WHERE usename=$1``
+auth_user
+---------
+
+If ``auth_user`` is set, any user not specified in auth_file will be
+queried through the ``auth_query`` query from pg_shadow in the database
+using ``auth_user``. Auth_user's password will be taken from ``auth_file``.
+
+Direct access to pg_shadow requires admin rights. It's preferable to
+use non-admin user that calls SECURITY DEFINER function instead.
+
pool_mode
---------
auth_user
---------
-If ``auth_user`` is set, any user not specified in auth_file will be
-queried from pg_shadow in the database using ``auth_user``. Auth_user's
-password will be taken from ``auth_file``.
-
-Direct access to pg_shadow requires admin rights. It's preferable to
-use non-admin user that calls SECURITY DEFINER function instead.
+Override of the global ``auth_user`` setting, if specified.
pool_size
---------
int cf_auth_type = AUTH_MD5;
char *cf_auth_file;
char *cf_auth_hba_file;
+char *cf_auth_user;
char *cf_auth_query;
int cf_max_client_conn;
CF_ABS("auth_type", CF_LOOKUP(auth_type_map), cf_auth_type, 0, "md5"),
CF_ABS("auth_file", CF_STR, cf_auth_file, 0, "unconfigured_file"),
CF_ABS("auth_hba_file", CF_STR, cf_auth_hba_file, 0, ""),
+CF_ABS("auth_user", CF_STR, cf_auth_user, 0, NULL),
CF_ABS("auth_query", CF_STR, cf_auth_query, 0, "SELECT usename, passwd FROM pg_shadow WHERE usename=$1"),
CF_ABS("pool_mode", CF_LOOKUP(pool_mode_map), cf_pool_mode, 0, "session"),
CF_ABS("max_client_conn", CF_INT, cf_max_client_conn, 0, "100"),
xfree(&cf_auth_file);
xfree(&cf_auth_hba_file);
xfree(&cf_auth_query);
+ xfree(&cf_auth_user);
xfree(&cf_server_reset_query);
xfree(&cf_server_check_query);
xfree(&cf_ignore_startup_params);