public static Connection getConnection(String url, String user, String password) throws Exception {
        UrlVerificationUtils.extractHostAndValidatePortFromJdbcUrl(url, POSTGRES_JDBC_PREFIX);
        return establishDatabaseConnection(url, user, password);
    }
Get PostgreSQL connection from the url and user.

@param url jdbc url, such as jdbc:mysql://host:port/database
@param user Username for JDBC URL
@param password User password
@return {@link Connection}
@throws Exception on get connection error
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/postgresql/PostgreSQLJdbcUtils.java