Getting started
- Getting the Driver This section describes the steps you need to take before you can write or run programs that use the JDBC interface. Precompiled versions of the driver can be …
- Importing JDBC This section describes how to load and initialize the JDBC driver in your programs. Any source file that uses JDBC needs to import the java.sql package, using: …
- Loading the Driver Applications do not need to explicitly load the org.postgresql.Driver class because the pgJDBC driver jar supports the Java Service Provider mechanism. The …
- Preparing the Database Server for JDBC Out of the box, Java does not support unix sockets so the PostgreSQL® server must be configured to allow TCP/IP connections. Starting with server version 8.0 …
- Setting up the Class Path To use the driver, the JAR archive named postgresql-MM.nn.pp.jar needs to be included in the class path, either by putting it in the CLASSPATH environment …