May 2018
Intermediate to advanced
576 pages
30h 25m
English
The postgresql.conf file also allows include directives, which look like the following:
include 'autovacuum.conf'
These specify another file that will be read at that point, just as if those parameters had been included in the main file.
This can be used to maintain multiple sets of files for the autovacuum configuration. Let's say we have a website that is busy mainly during the daytime, with some occasional night-time use. We decide to have two profiles: one for daytime, when we want less aggressive autovacuuming, and another at night, where we can allow more aggressive vacuuming:
autovacuum = onautovacuum_max_workers = 3include 'autovacuum.conf'