Skip to main content

Install the PostgreSQL Database Application

The PostgreSQL database application can be installed on the same server as the application or a different server. If it is installed on a different server, the location of the database server must be provided while installing the application.

Follow the steps to install the PostgreSQL database application.

CAUTION: The PostgreSQL database application must be installed before the application.

NOTE: These steps assume you have launched the installer through the Netwrix Setup Launcher (Netwrix_Setup.exe). If you are not using the launcher, right-click on NetwrixPostgreSQL14.exe and select Run as administrator. Then skip to Step 2.

Netwrix Setup Launcher

Step 1 – Click PostgreSQL Setup. The Netwrix PostgreSQL Setup wizard opens.

Netwrix PostgreSQL Setup wizard

Step 2 – Click Install.

Netwrix PostgreSQL Setup wizard on the EULA page

Step 3 – Read the End User License Agreement and select the I accept the license agreement checkbox. Click Next.

Netwrix PostgreSQL Setup wizard on the Folder Location page

Step 4 – By default, the installation directories are set to:

  • Install Folder – C:\Program Files\Stealthbits\PostgresSQL14
  • Data Folder – C:\ProgramData\Stealthbits\PostgresSQL14

Optionally, enter a new path or use the Browse buttons to modify as desired. Click Next.

Netwrix PostgreSQL Setup wizard on the Successfully Installed page

Step 5 – The installation begins and the installer displays a Setup Progress window. Click Exit when the installation is successful. The Netwrix PostgreSQL Setup wizard closes.

Netwrix Setup Launcher showing PostgreSQL Setup completed

The PostgreSQL database application is now installed. Now you can install the Threat Manager application. See the Install the Threat Manager Application topic for additional information.

Optionally Configure the Postgres.conf File

PostgreSQL has some unique memory management features that need to be configured specifically based on the specifications of the database server. PostgreSQL can easily be starved of resources and enter a failed state if careful consideration and configuration of the postgres.conf file is not taken under consideration. For larger environments or for those experiencing issues with PostgreSQL, the following changes are suggested.

NOTE: When setting values, specifically when using a Memory unit, case sensitivity is required.

The table displays Postgres.conf settings and their suggested values.

SettingSuggested ValueNotes
effective_cache_sizeTotal Server Memory (MBs) * .75
shared_bufferstotalMemory / 4shared_buffers on windows needs to be limited to 512MB
wal_buffers3% of shared_buffers with a min of 32kB and a max of 16MB
checkpoint_timeoutcheckpoint_timeout = 30min
max_wal_size2048MB
min_wal_size1024MB
checkpoint_completion_target0.7
work_memwork_mem = ((totalMemory - shared_buffers) / (max_connections * 3) / max_parallel_workers_per_gather)Limit to 64kB
max_connections100
maintenance_work_memmaintenance_work_mem = totalMemory / 16cap maintenance memory at 2GB on servers with lots of memory
default_statistics_target100
random_page_costif ( disk_is_hdd ) { random_page_cost = 4 } else { random_page_cost = 1.1 }
max_parallel_workersmax_parallel_workers = cpuNum
max_worker_processes8
max_parallel_workers_per_gather2
max_locks_per_transaction300