When should I use this postgresql-common?
Use it to restore a missing default, confirm what shipped, or diff against your current PostgreSQL config.
/var/log/postgresql/*.log {
weekly
rotate 10
copytruncate
delaycompress
compress
notifempty
missingok
su root root
}
curl https://exampleconfig.com/api/v1/config/original/101326ef5d138998692ece35109ef1a2?hint=postgresql-common
wget -O postgresql-common https://exampleconfig.com/api/v1/config/original/101326ef5d138998692ece35109ef1a2?hint=postgresql-common
<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/101326ef5d138998692ece35109ef1a2?hint=postgresql-common' /><config><app>PostgreSQL</app><os>Debian 9 (Stretch)</os><location>/etc/logrotate.d/postgresql-common</location><lines>10</lines><md5>101326ef5d138998692ece35109ef1a2</md5><sha256>d79d7ccfd06bc621bdf50d608c68d0e3fed70bf8f3ce9e87bbbb2b1802fd3912</sha256></config></prompt>
Paste into Claude, ChatGPT, or any AI assistant.
sudo apk add postgresql
sudo apt update && sudo apt install postgresql
sudo yum install postgresql17-server
sudo apt update && sudo apt install postgresql
When should I use this postgresql-common?
Use it to restore a missing default, confirm what shipped, or diff against your current PostgreSQL config.
How do I restore PostgreSQL defaults?
Download the file, back up the current one in /etc/logrotate.d/postgresql-common, replace it, then reload or restart PostgreSQL.
Is postgresql-common safe for production?
It is the vendor default for Debian 9 (Stretch). Treat it as a baseline and review security and performance settings before production use.
How does this differ from other OS versions?
Defaults vary by distro and version. This copy matches Debian 9 (Stretch).
Can I use this for PostgreSQL troubleshooting?
Yes. Diff it against yours to find drift, then restore only the sections you need.