PostgreSQL postgresql-common configuration example for Ubuntu 18.04 LTS (Bionic Beaver)

Get the default configuration file postgresql-common for PostgreSQL, optimized for Ubuntu 18.04 LTS (Bionic Beaver). This example configuration ensures optimal compatibility and performance for PostgreSQL, making it easy to set up and adjust to meet your needs.

Find and download the configuration file here: /etc/logrotate.d/postgresql-common.

For more configurations and setup guides, visit our related files section to further customize your system.

    /var/log/postgresql/*.log {
       weekly
       rotate 10
       copytruncate
       delaycompress
       compress
       notifempty
       missingok
       su root root
}

    
  

Config Details

Location
/etc/logrotate.d/postgresql-common
Operating system
Ubuntu 18.04 LTS (Bionic Beaver)
Length
10 lines
MD5 checksum
101326ef5d138998692ece35109ef1a2

Usage

Download the raw file with wget or curl

Wget

wget -O postgresql-common.example https://exampleconfig.com/static/raw/postgresql/ubuntu18.04/etc/logrotate.d/postgresql-common

cURL

curl https://exampleconfig.com/static/raw/postgresql/ubuntu18.04/etc/logrotate.d/postgresql-common > postgresql-common.example