import java.sql.*;
import org.postgresql.Connection;

public class PostgreSQLTest {
    
    public void runTest (String  []str) throws Exception {
        String url = str[0];
        String user = str[1];
        String password = str[2];
        
        Class.forName("org.postgresql.Driver").newInstance();
        org.postgresql.Connection c = (org.postgresql.Connection) DriverManager.getConnection(url, user,password);
        // look up a void oid
        for ( int i=0;i<5;i++) {
            c.getSQLType(1043);
        }
    }

    public static void main(String[] args) {
        try {
            PostgreSQLTest test = new PostgreSQLTest();
            test.runTest(args);
        } catch (Exception e) {
            e.printStackTrace();
        } // end of try-catch
    } // end of main()
}
