Using EDB Postgres Tuner
You can use EDB Postgres Tuner in two ways: to automatically apply all tuning recommendations or to manually apply selected tuning recommendations.
Automatic tuning
To automatically apply all tuning recommendations, set the edb_pg_tuner.autotune
parameter to true
. Restart Postgres to apply the change. EDB Postgres Tuner then begins applying tuning recommendations.
Note
Automatic tuning isn't currently supported for BigAnimal.
Manual tuning
To manually apply selected tuning recommendations, make sure the edb_pg_tuner.autotune
parameter is set to false
, which is the default. Then, use the edb_pg_tuner_recommendations
function to inspect the tuning recommendations from the output.
You can set the format of the tuning recommendations to either conf
or sql
. For example:
Where:
conf
provides an output likeparameter = value
, which you can copy and paste into your configuration file. This is the default.sql
provides an output likeALTER SYSTEM SET parameter = value
, which you can execute in your preferred Postgres client tool.
Example
This example shows how to manually apply tuning recommendations to a postgresql.conf
file.
Here's an example of settings in a postgresql.conf
file:
The following command provides tuning recommendations for the postgresql.conf
file in the default conf
format:
The following command provides an output in the sql
format: