It would help to see your code and the exception you're getting. Myguess is you're not casting the Connection object you get back fromDriverManager to a PGConnection, but that's a shot in the dark at thispoint.