Im using the Perl module DBD::pg to connect to Postgres
DBI connect('dbname=db;host=host;port=5432','user',...) failed: authentication method 10 not supported
#connect to database
my $dbh = DBI->connect("dbi:Pg:dbname=$dbname;host=$host;port=$port",
$username,
$password
);