dstpath, strerror(errno));
if (ftruncate(fd, newsize) != 0)
- pg_fatal("could not truncate file \"%s\" to %u bytes: %s\n",
+ pg_fatal("could not truncate file \"%s\" to %u: %s\n",
dstpath, (unsigned int) newsize, strerror(errno));
close(fd);
val = run_simple_query("SELECT pg_current_xlog_insert_location()");
if (sscanf(val, "%X/%X", &hi, &lo) != 2)
- pg_fatal("unrecognized result \"%s\" for current XLOG insert location\n", val);
+ pg_fatal("unrecognized result \"%s\" for current WAL insert location\n", val);
result = ((uint64) hi) << 32 | lo;
continue; /* final zero-row result */
default:
- pg_fatal("unexpected result while fetching remote files: %s\n",
+ pg_fatal("unexpected result while fetching remote files: %s",
PQresultErrorMessage(res));
}
if (PQgetisnull(res, 0, 2))
{
pg_log(PG_DEBUG,
- "received NULL chunk for file \"%s\", file has been deleted\n",
+ "received null value for chunk for file \"%s\", file has been deleted\n",
filename);
pg_free(filename);
PQclear(res);
pg_fatal("source and target cluster are on the same timeline\n");
findCommonAncestorTimeline(&divergerec, &lastcommontli);
- printf(_("The servers diverged at WAL position %X/%X on timeline %u.\n"),
+ printf(_("servers diverged at WAL position %X/%X on timeline %u\n"),
(uint32) (divergerec >> 32), (uint32) divergerec, lastcommontli);
/*
if (!rewind_needed)
{
- printf(_("No rewind required.\n"));
+ printf(_("no rewind required\n"));
exit(0);
}
findLastCheckpoint(datadir_target, divergerec, lastcommontli,
&chkptrec, &chkpttli, &chkptredo);
- printf(_("Rewinding from last common checkpoint at %X/%X on timeline %u\n"),
+ printf(_("rewinding from last common checkpoint at %X/%X on timeline %u\n"),
(uint32) (chkptrec >> 32), (uint32) chkptrec,
chkpttli);
if (nfields != 3)
{
fprintf(stderr, _("syntax error in history file: %s\n"), fline);
- fprintf(stderr, _("Expected an XLOG switchpoint location.\n"));
+ fprintf(stderr, _("Expected a transaction log switchpoint location.\n"));
exit(1);
}
if (entries && tli <= lasttli)