pg_hba.conf 和 pg_ident.conf 都允许在用户名上进行正则表达式匹配。pg_hba.conf 还支持在数据库名称上进行正则表达式匹配。
pg_hba.conf
pg_ident.conf