Search Postgresql Archives

When does pg_archivecleanup work?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As I have very low wal_keep_segments compare to my wal generation, I am collecting archive wal files at slave.
Now in order to clean up archive wal collection directory at slave, I used "archive_cleanup_command".
I watched that after archive wal files were pilling up at slave and after certain point it was cleared up.
But still I didn't get the idea when it will be executed and clean up my directory. 

Example: recovery.conf that I used:
standby_mode = 'on' # enables stand-by (readonly) mode
primary_conninfo = 'host= 10.0.0.1 port= 5432 user= replicator password=replicator'
trigger_file = '/pgdata/pgsql.trigger.5432'
restore_command = 'cp /archivewal/%f %p'
archive_cleanup_command = '$HOME/bin/pg_archivecleanup  /archivewal %r'

Any idea please.

Thanks.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux