about summary refs log tree commit diff stats
path: root/tools/conf/etc/logrotate.d/postgresql
diff options
context:
space:
mode:
Diffstat (limited to 'tools/conf/etc/logrotate.d/postgresql')
-rw-r--r--tools/conf/etc/logrotate.d/postgresql10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/conf/etc/logrotate.d/postgresql b/tools/conf/etc/logrotate.d/postgresql
new file mode 100644
index 0000000..8c16bfa
--- /dev/null
+++ b/tools/conf/etc/logrotate.d/postgresql
@@ -0,0 +1,10 @@
+# this log is only used by postgresql at startup
+# before start using syslog so there is no need
+# to reload syslog-ng or syslog-ng
+/var/log/postgresql {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
+    notifempty
+    create 664 postgres postgres
+}