Skip to main content

Cambria FTC/Cluster Guide to Using External PostgreSQL

Introduction

By default, Cambria FTC/Cluster installs PostgreSQL locally on the system disk.
In some environments, this may not be allowed — for example when installation into Program Files is required due to system policies, security restrictions, or disk-management rules.

In these cases, you can configure FTC / Cluster to use an externally installed PostgreSQL instance instead of the bundled one.

Disclaimer:
FTC and Cluster do not officially support externally installed PostgreSQL instances.
Certain features will not function as expected:

  • Cluster redundancy will not work (you will receive an error if you try to enable it).
  • Automatic PostgreSQL upgrades will not occur — you must perform upgrades manually.
    Capella will provide advance notice for any required database version changes.
  • Administrative knowledge is required to complete setup, including familiarity with:
    • Windows UAC
    • Windows Registry
    • PostgreSQL command-line tools
  • The PostgreSQL bin folder must be readable and executable by the Cambria FTC/Cluster service.
  • The PostgreSQL data folder must be fully controllable by the Cambria Cluster service.
  • A compatible PostgreSQL version must be properly installed and configured.
    Registry keys must be updated according to the instructions below.
  • The PostgreSQL password will be visible in the Windows Registry.

Steps for Using an External PostgreSQL with FTC/Cluster

1. Install PostgreSQL

Install a compatible version of PostgreSQL either:

  • Externally, or
  • Inside the FTC/Cluster Bin folder.

2. Install FTC

Proceed with the normal FTC installation.

3. Update the Windows Registry

Modify the following registry entries under:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\CAPELLA\CAMBRIA

Required Values

KeyTypeExample ValueDescription
cpPostgresRootDirStringC:\Program Files\PostgreSQL\14Root directory of the PostgreSQL installation
cpPostgresPortDWORD (Decimal)5434Port used by PostgreSQL (must match your installation)
cpPostgresPasswordString1234Password for the PostgreSQL user

Optional Keys

KeyTypeExample ValueDescription
cpPostgresDataDirStringC:\Program Files\PostgreSQL\14\dataPath to the PostgreSQL data directory
cpPostgresServiceNameStringpostgresql x64 14PostgreSQL service name
cpPostgresUserStringpostgresPostgreSQL username
cpPostgresDbnameStringpostgresPostgreSQL database name

Troubleshooting

If you see this error message:

A required component (PostgreSQL database) is not running. You may need to reboot the machine.

Check the following:

  • ✅ The PostgreSQL service is running
  • ✅ The configured port and service name match your PostgreSQL setup
  • ✅ FTC / Cluster services have the necessary permissions for both the PostgreSQL bin and data folders
  • ✅ You have rebooted the machine after changing registry entries

If you don’t remember the port used, you can find it in:

C:\Program Files\PostgreSQL\14\data\postgresql.conf