Updated on 2023-10-23 GMT+08:00

Development Specifications

If the connection pool mechanism is used during application development, comply with the following specifications:

  • If GUC parameters are set in the connection, run SET SESSION AUTHORIZATION DEFAULT;RESET ALL; to clear the connection status before you return the connection to the connection pool.
  • If a temporary table is used, delete the temporary table before you return the connection to the connection pool.

If you do not do so, the connection state in the connection pool will remain, which affects subsequent operations using the connection pool.

Compatibility:

The new driver is forward compatible with the database. However, to use the new features added to the driver and database, you must upgrade the database.

If the driver is used in a multi-thread environment:

The JDBC driver is not thread-safe and does not guarantee that the connection methods are synchronized. The caller synchronizes the calls to the driver.

Table 1 describes the compatibility of application development drivers.

Table 1 Description of compatibility

Driver

Compatibility

JDBC

The driver is forward compatible with earlier database versions. However, to use the new features added to the driver and database, you must upgrade the database.

ODBC, libpq, and Psycopg

The driver version must match the database version.