Thread: pgsql: Fix some issues in pg_rewind.
Fix some issues in pg_rewind. * Remove invalid option character "N" from the third argument (valid option string) of getopt_long(). * Use pg_free() or pfree() to free the memory allocated by pg_malloc() or palloc() instead of always using free(). * Assume problem is no disk space if write() fails but doesn't set errno. * Fix several typos. Patch by me. Review by Michael Paquier. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/966c37fdb5ed9b87f3e91eace4dbbed7909f6769 Modified Files -------------- src/bin/pg_rewind/copy_fetch.c | 4 ++-- src/bin/pg_rewind/datapagemap.c | 4 ++-- src/bin/pg_rewind/file_ops.c | 6 ++++++ src/bin/pg_rewind/filemap.c | 8 ++++---- src/bin/pg_rewind/libpq_fetch.c | 4 ++-- src/bin/pg_rewind/logging.h | 2 +- src/bin/pg_rewind/pg_rewind.c | 6 +++--- 7 files changed, 20 insertions(+), 14 deletions(-)