Viktor Dukhovni via Postfix-users:
>     
> https://github.com/vdukhovni/postfix/blob/a5b1b93841f14c32ddc9772887a664e7736b3826/postfix/src/global/dict_pgsql.c#L565-L573
> 
>     static void plpgsql_connect_single(DICT_PGSQL *dict_pgsql, HOST *host)
>     {
>         if (host->type == TYPECONNSTR) {
>             host->db = PQconnectdb(host->name);
>         } else {
>             host->db = PQsetdbLogin(host->name, host->port, NULL, NULL,
>                                     dict_pgsql->dbname, dict_pgsql->username,
>                                     dict_pgsql->password);
>         }
>         ...
> 
> The "dict_pgsql->dbname" value is only used for non-URI "hosts" elements.

Not only dbname, but also username and password.

I'll revise pgsql_table(5) documentation, again, later today.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to