Chapter 56. Automatic Tuning

PostgreSQL Enterprise Server (PgES) supports dynamic tuning of the database server to make the optimal use of the system resources available on the host machine where it's installed. The parameter that controls this functionality is located in the postgresql.conf file and is named pges_autotune. Enabling this feature will automatically ajust the values of work_mem, maintenance_work_mem si effective_cache_size system parameters.

pges_autotune determines how much of the host system's resources for the database server to use. It bases the determination on the host machine's total available resources and the intended use of the host machine.

When PgES is first installed, you set the pges_autotune parameter according to the host machine's use as a development machine, mixed-use machine, or dedicated server. For most purposes, the database administrator doesn't need to adjust the configuration parameters in the postgresql.conf file to improve performance.

Here are some things to keep in mind when setting up dynamic tuning:

After you select a value for pges_autotune, you can further fine-tune database server performance by adjusting the other configuration parameters in the postgresql.conf file. Any adjusted setting overrides the corresponding value chosen by pges_autotune. To change the value of a parameter:

  1. Uncomment the configuration parameter.
  2. Specify the desired value.
  3. Restart the database server.