Chapter 2. Using the pgExpress Driver

1. Requirements

The basic requirements for using the pgExpress Driver are:

  • Delphi 6+, Kylix, or Codegear C++ Builder 6+;, with dbExpress
  • A libpq library compatible with the server version the driver will connect.
  • A compatible PostgreSQL server version 7.1 or newer should work fine, but we recommend using at least version 7.4, or preferably, the latest one.

1.1. Libpq

Please install the PostgreSQL distribution in your operating system, and the libpq should be installed along it. Most users will want to install PostgreSQL for Windows; libpq and all its dependencies will be installed along it. When deploying your application, don't forget to deploy thye libpq library file (ex: libpq.dll (Windows) / libpq.so (Linux)) and all its dependencies (ex: libiconv-2.dll, MSVCR90.DLL etc.).

Note

Prior to version 4.60, the package used to include a libpq library. It was meant to be easier to use/test the driver, however it was from an older version which is now deprecated in favor of newer version that have more dependencies.