rc = unlink(WALFilePath);
if (rc !=0 )
- fprintf(stderr, "\npg_standby: ERROR failed to remove \"%s\" because %s\n", WALFilePath, strerror(errno));
+ fprintf(stderr, "\npg_standby: ERROR failed to remove \"%s\": %s\n", WALFilePath, strerror(errno));
}
rc = unlink(triggerPath);
if (rc != 0)
{
- fprintf(stderr, "\n ERROR: unable to remove \"%s\", because %s", triggerPath, strerror(errno));
+ fprintf(stderr, "\n ERROR: could not remove \"%s\": %s", triggerPath, strerror(errno));
fflush(stderr);
exit(rc);
}
{
ereport(emode,
(errcode_for_file_access(),
- errmsg("could not read from log file %u, segment %u at offset %u: %m",
+ errmsg("could not read from log file %u, segment %u, offset %u: %m",
readId, readSeg, readOff)));
goto next_record_is_invalid;
}
if (rmdir(subfile) < 0)
ereport(ERROR,
(errcode_for_file_access(),
- errmsg("could not delete directory \"%s\": %m",
+ errmsg("could not remove directory \"%s\": %m",
subfile)));
pfree(subfile);
if (_CreateRestrictedToken == NULL)
{
- fprintf(stderr, "WARNING: Unable to create restricted tokens on this platform\n");
+ fprintf(stderr, "WARNING: cannot create restricted tokens on this platform\n");
if (Advapi32Handle != NULL)
FreeLibrary(Advapi32Handle);
return 0;
exit_nicely();
}
#else
- fprintf(stderr, _("%s: symlinks are not supported on this plataform"));
+ fprintf(stderr, _("%s: symlinks are not supported on this platform"));
exit_nicely();
#endif
}
if (ret)
{
- fprintf(stderr, _("%s: could not find own executable\n"), progname);
+ fprintf(stderr, _("%s: could not find own program executable\n"), progname);
exit(1);
}
* NT4 doesn't have CreateRestrictedToken, so just call ordinary
* CreateProcess
*/
- write_stderr("WARNING: Unable to create restricted tokens on this platform\n");
+ write_stderr("WARNING: cannot create restricted tokens on this platform\n");
if (Advapi32Handle != NULL)
FreeLibrary(Advapi32Handle);
return CreateProcess(NULL, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, processInfo);
* Log error if we can't get version, or if we're on WinXP/2003 or
* newer
*/
- write_stderr("WARNING: Unable to locate all job object functions in system API!\n");
+ write_stderr("WARNING: could not locate all job object functions in system API\n");
}
else
{
case ECPG_CONVERT_BOOL:
snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc),
- "Unable to convert %s to bool on line %d.", str, line);
+ "Could not convert %s to bool on line %d.", str, line);
break;
case ECPG_EMPTY:
PG_TRY();
{
if ((plntup = PyDict_GetItemString(pltd, "new")) == NULL)
- elog(ERROR, "TD[\"new\"] deleted, unable to modify tuple");
+ elog(ERROR, "TD[\"new\"] deleted, cannot modify tuple");
if (!PyDict_Check(plntup))
elog(ERROR, "TD[\"new\"] is not a dictionary object");
Py_INCREF(plntup);
if (so == NULL || ((sv = PyString_AsString(so)) == NULL))
{
level = ERROR;
- sv = "Unable to parse error message in `plpy.elog'";
+ sv = "could not parse error message in `plpy.elog'";
}
oldcontext = CurrentMemoryContext;
{
if (Advapi32Handle != NULL)
FreeLibrary(Advapi32Handle);
- fprintf(stderr, "ERROR: Unable to create restricted tokens on this platform\n");
+ fprintf(stderr, "ERROR: cannot create restricted tokens on this platform\n");
exit_nicely(2);
}
/* Open the current token to use as base for the restricted one */
if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ALL_ACCESS, &origToken))
{
- fprintf(stderr, "Failed to open process token: %lu\n", GetLastError());
+ fprintf(stderr, "could not open process token: %lu\n", GetLastError());
exit_nicely(2);
}
!AllocateAndInitializeSid(&NtAuthority, 2,
SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_POWER_USERS, 0, 0, 0, 0, 0, 0, &dropSids[1].Sid))
{
- fprintf(stderr, "Failed to allocate SIDs: %lu\n", GetLastError());
+ fprintf(stderr, "could not allocate SIDs: %lu\n", GetLastError());
exit_nicely(2);
}
if (!b)
{
- fprintf(stderr, "Failed to create restricted token: %lu\n", GetLastError());
+ fprintf(stderr, "could not create restricted token: %lu\n", GetLastError());
exit_nicely(2);
}
if (std_zone_name[0] == '\0')
{
ereport(LOG,
- (errmsg("unable to determine system timezone, defaulting to \"%s\"", "GMT"),
+ (errmsg("could not determine system time zone, defaulting to \"%s\"", "GMT"),
errhint("You can specify the correct timezone in postgresql.conf.")));
return NULL; /* go to GMT */
}