Table of Contents

PostgreSQL optimization and authorizations

PostgreSQL 9.3.x documentation (English): https://www.postgresql.org/docs/9.3/static/runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-MEMORY

Main configuration file is postgresql.conf located in PostgreSQL instance data directory.

PostgreSQL configuration using the graphical interface ProlineAdmin GUI

Launch ProlineAdmin GUI

Windows users

A shortcut “Proline Admin” is available in the Windows Start Menu, under the Proline folder.

Linux users or manual installation

Execute the start.sh script located in the folder obtained after Proline Admin GUI archive file extraction.

ProlineAdmin GUI usage

Locate the data directory

Click the Configuration button on the application main page. This opens the configuration window. Its first tab (Configuration files) has a section to reference the PostgreSQL data directory. This field must be filled to configure PostgreSQL. Click Apply to save changes and go on in this window.

Note: The data directory is defined when installing PostgreSQL on the machine. This is the folder in which you will find the “postgresql.conf” and the “pg_hba.conf” files.

You can then edit two major files in PostgreSQL configuration.

Warning: Many changes will be effective only after a restart of the PostgreSQL service, which is not yet handled by ProlineAdmin GUI (needs to be done manually).


Edit connections : pg_hba.conf

The pg_hba.conf file lists the IP addresses that are allowed to connect to your databases. You will often have to edit this file to first set up Proline. For example, you may have to allow your own machine to establish connection, or a set of machines working together…

Select the PostgreSQL authorizations tab to easily edit this file.

The first section allows you to change the PostreSQL data directory. It is synchronized with the Configuration files and the PostreSQL optimization tabs.

The icon near the 'Database' field opens a window to help you design the database name. As shown in the screenshot above, keeping the mouse over a column name for a few seconds will display a tooltip to help you understand how to create a new connection.

Note : pg_ha.conf file also accepts some keywords for the 'adress' field (in addition to the IP/CIDR mode). However, ProlineAdmin GUI is not yet able to handle these. If such lines are read within pg_hba.conf, the 'IP adress' and 'IPs count' fields will be left blank, and must be filled with the appropriate IP adress/IPs count pair to be registered.

Note: for advanced users, there is more documentation inside the pg_hba.conf file (located in the PostgreSQL data directory).

Click Apply to save changes and go on in this window ; click OK to save changes and go back to the main view ; or just go to another tab without saving changes for now.


Optimize PostgreSQL performances for Proline : postgresql.conf

Click 'Edit postgresl.conf' to easily edit this file. The easiest way to use it is to simply click on Set all to optimized value, then Apply.

The first section allows you to change the PostreSQL data directory. It is synchronized with the Configuration files and the PostreSQL authorizations tabs.

Each line under this block corresponds to a tuneable parameter. If the first box of the line isn't checked, then it will be commented in the configuration file (not taken into account). You can use either the sliders or the fields and boxes to change the values. Keeping the mouse over a parameter name for a few seconds will display a tooltip to help you understand what is this parameter about.

As you can see, at the top of the modal window stand 2 buttons:

Click Apply to save changes and go on in this window ; click OK to save changes and go back to the main view ; or just go to another tab without saving changes for now.


Most useful tuneable parameters in postgresql.conf

Following recommended memory sizes are given for a server with 16 GiB of physical memory and about 8 GiB dedicated for the PostgreSQL instance.

Default value 100

Default value 0 (2 hours) → 300 (5 minutes)


Default value 32MB → 2048MB

Default value 3 → 128

Default value 0.5 → 0.9


Default value 8MB → 512MB


Default value 1MB → 4MB to 64MB

Default value 16MB → 1024MB


Default value 128MB → 4096MB