On Sunday, 23 November 2025 at 17:28, Wietse Venema via Postfix-users 
<[email protected]> wrote:


> 
> 
> This was changed in Postfix 3.10. With Postfix 3.3-3.9 the TYPECONNSTR
> value below means the name starts with "postgresql:", while in
> Postfix 3.10 it means that the name contains ANY valid URI scheme.
> 
> 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);
> 
> if (host->db == NULL || PQstatus(host->db) != CONNECTION_OK) {
> 
> msg_warn("connect to pgsql server %s: %s",
> host->hostname, PQerrorMessage(host->db));
> 

For the record I'm 3.7.11-0+deb12u1 (as shipped with Debian Bookworm).

An upgrade to Trixie (and hence newer Postfix) is in the pipeline, but not for 
a couple of months yet....
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to