vmware/pg_rewind — pull request #23 by Samrat-Revagade (2014-01-22 07:24:59+00:00)
Title: Remove temporary directories

Remove temporary directories which gets created when there is
more data that can fit in memory. After operation finishes they
are no longer required.
For example: for operations such as sorting

Error message shows pg_rewind fails where any such directory is present in cluster:
.
.
.

pg_xlog/00000001000000000000001F (REMOVE)
pg_log/postgresql-2014-01-10_145742.log (REMOVE)
pg_stat/db_0.stat (REMOVE)
pg_stat/global.stat (REMOVE)
pg_stat/db_12907.stat (REMOVE)
base/pgsql_tmp (REMOVE)
could not remove file "/home/samrat/pg_rewind/data-patched-sync/base/pgsql_tmp": Is a directory