/var/log/postgresql/*.log {
{{ item.when }}
rotate {{ item.keep }}
copytruncate
delaycompress
compress
notifempty
missingok
su root root
}