On 2019-12-04 16:03:24 -0800, Rich Shepard wrote: > On Wed, 4 Dec 2019, Stephen Eilert wrote: > > Usually, this is done by logrotate or a similar mechanism in your system. > > You’ll likely find that other logs in your system follow a similar > > pattern, not just Postgresql. > > I just checked /etc/logrotate.d/postgres and it was set at daily with rotate > 7. I changed rotate to 4 but the dates are 3-4 days apart, not sequential. Your log files are extremely small. At only a few hundred bytes every 3 or 4 days it is very likely that nothing is logged on most days. If your log file is empty, logrotate won't rotate it if the option "notifempty" is set (which is probably the case). hp -- _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@xxxxxx | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!"
Attachment:
signature.asc
Description: PGP signature