How to Install and Set Up the PostgreSQL Client

Use the following instructions to install the PostgreSQL Client on all managed agents used to scan PostgreSQL.

Overview

PostgreSQL requires the native PostgreSQL client DLL and its associated SSL libraries and DLLs.

Install these on all managed agents used to scan PostgreSQL.  

How to Install the PostgreSQL Client

Procedure:

  1. Download the latest installer for Windows x86-64  (example: postgresql-17.6-1-windows-x64 .exe)
    1. https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

  2. Launch the installer.
  3. On the Select Components screen:
    1. Select only Command Line Tools

  4. Edit the Environment Variables - System variables.

  5. Create a new system variable and add the path to the installed DLLs.
  6. Add this entry to the Path System Variable.
    1. For example: C:\Program Files\PostgreSQL\18\bin

  7. Reboot your machine.

Common Errors

Resolve these errors with the procedure described in this article.

  • INFO
    • Database open returned: FAILURE
  • ERROR
    • Unable to open database (Module error: libpq.dll: The specified module could not be found.  pq.dll: The specified module could not be found. DBMS API Library loading fails This library is a part of DBMS client installation, not SQLAPI++ Make sure DBMS client is installed and this required library is available for dynamic loading )


Was this article helpful?