This is the default example configuration of postgresql-common provided by PostgreSQL. This config file was generated by PostgreSQL running on Ubuntu 18.04.
It is located under: /etc/logrotate.d/postgresql-common
/var/log/postgresql/*.log {
weekly
rotate 10
copytruncate
delaycompress
compress
notifempty
missingok
su root root
}
Download the raw file with wget or curl
wget -O postgresql-common.example http://exampleconfig.com/static/raw/postgresql/ubuntu18.04/etc/logrotate.d/postgresql-common
curl http://exampleconfig.com/static/raw/postgresql/ubuntu18.04/etc/logrotate.d/postgresql-common > postgresql-common.example
Other config files you might find useful