Skip to content

Commit b11215a

Browse files
committed
add pg_archivecleanup to conf. temporarily includes a log (for testing)
1 parent 917e335 commit b11215a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/files/postgresql_config/postgresql.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ checkpoint_flush_after = 256kB # measured in pages, 0 disables
259259
# placeholders: %p = path of file to restore
260260
# %f = file name only
261261
# e.g. 'cp /mnt/server/archivedir/%f %p'
262-
#archive_cleanup_command = '' # command to execute at every restartpoint
262+
archive_cleanup_command = 'echo "$(date) - pg_archivecleanup %r" >> /var/lib/postgresql/data/pg_archivecleanup.log && pg_archivecleanup /var/lib/postgresql/data/pg_wal %r' # command to execute at every restartpoint
263263
#recovery_end_command = '' # command to execute at completion of recovery
264264

265265
# - Recovery Target -

0 commit comments

Comments
 (0)