Fix some issues in pg_rewind.
Fujii Masao <fujii@postgresql.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_rewind/copy_fetch.c | modified | +2 −2 |
| src/bin/pg_rewind/datapagemap.c | modified | +2 −2 |
| src/bin/pg_rewind/filemap.c | modified | +4 −4 |
| src/bin/pg_rewind/file_ops.c | modified | +6 −0 |
| src/bin/pg_rewind/libpq_fetch.c | modified | +2 −2 |
| src/bin/pg_rewind/logging.h | modified | +1 −1 |
| src/bin/pg_rewind/pg_rewind.c | modified | +3 −3 |