On Thu, Oct 24, 2024 at 12:00:42PM -0400, Wietse Venema via Postfix-users wrote:
> I have updated the hosts example, and added that the dbname field
> is required but ignored when the hosts field specifies only URI
> forms.
>
> Examples:
> hosts =
> postgresql://[email protected]/databasename?sslmode=require
> ...
> dbname (required)
> The database name on the servers. Example:
> dbname = customer_database
>
> This setting is required, but ignored when a postgresql:// URI
> specifies a database name.
>
> We could add a ton of code to parse a postgresql:// URI and find
> out if it specifies a database name, but that does not seem right.
Note, my cursory look at the code suggests that URI connection strings
MUST specify a database name, the required "dbname" parameter is never
used to augment the URI, even if it appears to not include the required
databasename path component.
--
Viktor.
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]