Commit 0fd37839 authored by Peter Eisentraut's avatar Peter Eisentraut

Message style revisions

parent 8532a1aa
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.177 2004/10/01 16:39:54 tgl Exp $ * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.178 2004/10/12 21:54:34 petere Exp $
* *
* *
* INTERFACE ROUTINES * INTERFACE ROUTINES
...@@ -492,7 +492,7 @@ conditional_relation_open(Oid relationId, LOCKMODE lockmode, bool nowait) ...@@ -492,7 +492,7 @@ conditional_relation_open(Oid relationId, LOCKMODE lockmode, bool nowait)
if (!ConditionalLockRelation(r, lockmode)) if (!ConditionalLockRelation(r, lockmode))
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_LOCK_NOT_AVAILABLE), (errcode(ERRCODE_LOCK_NOT_AVAILABLE),
errmsg("could not obtain lock on \"%s\"", errmsg("could not obtain lock on relation \"%s\"",
RelationGetRelationName(r)))); RelationGetRelationName(r))));
} }
else else
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.172 2004/10/09 02:46:40 momjian Exp $ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.173 2004/10/12 21:54:35 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1933,7 +1933,7 @@ RestoreArchivedFile(char *path, const char *xlogfname, ...@@ -1933,7 +1933,7 @@ RestoreArchivedFile(char *path, const char *xlogfname,
if (errno != ENOENT) if (errno != ENOENT)
ereport(FATAL, ereport(FATAL,
(errcode_for_file_access(), (errcode_for_file_access(),
errmsg("could not stat \"%s\": %m", errmsg("could not stat file \"%s\": %m",
xlogpath))); xlogpath)));
} }
else else
...@@ -2035,7 +2035,7 @@ RestoreArchivedFile(char *path, const char *xlogfname, ...@@ -2035,7 +2035,7 @@ RestoreArchivedFile(char *path, const char *xlogfname,
if (errno != ENOENT) if (errno != ENOENT)
ereport(FATAL, ereport(FATAL,
(errcode_for_file_access(), (errcode_for_file_access(),
errmsg("could not stat \"%s\": %m", errmsg("could not stat file \"%s\": %m",
xlogpath))); xlogpath)));
} }
} }
...@@ -2739,7 +2739,7 @@ readTimeLineHistory(TimeLineID targetTLI) ...@@ -2739,7 +2739,7 @@ readTimeLineHistory(TimeLineID targetTLI)
if (errno != ENOENT) if (errno != ENOENT)
ereport(FATAL, ereport(FATAL,
(errcode_for_file_access(), (errcode_for_file_access(),
errmsg("could not open \"%s\": %m", path))); errmsg("could not open file \"%s\": %m", path)));
/* Not there, so assume no parents */ /* Not there, so assume no parents */
return list_make1_int((int) targetTLI); return list_make1_int((int) targetTLI);
} }
...@@ -2829,7 +2829,7 @@ existsTimeLineHistory(TimeLineID probeTLI) ...@@ -2829,7 +2829,7 @@ existsTimeLineHistory(TimeLineID probeTLI)
if (errno != ENOENT) if (errno != ENOENT)
ereport(FATAL, ereport(FATAL,
(errcode_for_file_access(), (errcode_for_file_access(),
errmsg("could not open \"%s\": %m", path))); errmsg("could not open file \"%s\": %m", path)));
return false; return false;
} }
} }
...@@ -2927,7 +2927,7 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI, ...@@ -2927,7 +2927,7 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI,
if (errno != ENOENT) if (errno != ENOENT)
ereport(FATAL, ereport(FATAL,
(errcode_for_file_access(), (errcode_for_file_access(),
errmsg("could not open \"%s\": %m", path))); errmsg("could not open file \"%s\": %m", path)));
/* Not there, so assume parent has no parents */ /* Not there, so assume parent has no parents */
} }
else else
...@@ -4077,7 +4077,7 @@ StartupXLOG(void) ...@@ -4077,7 +4077,7 @@ StartupXLOG(void)
{ {
ereport(PANIC, ereport(PANIC,
(errmsg("could not locate required checkpoint record"), (errmsg("could not locate required checkpoint record"),
errhint("If you are not restoring from a backup, try removing $PGDATA/backup_label."))); errhint("If you are not restoring from a backup, try removing the file \"%s/backup_label\".", DataDir)));
} }
} }
else else
...@@ -5288,7 +5288,7 @@ pg_start_backup(PG_FUNCTION_ARGS) ...@@ -5288,7 +5288,7 @@ pg_start_backup(PG_FUNCTION_ARGS)
if (errno != ENOENT) if (errno != ENOENT)
ereport(ERROR, ereport(ERROR,
(errcode_for_file_access(), (errcode_for_file_access(),
errmsg("could not stat \"%s\": %m", errmsg("could not stat file \"%s\": %m",
labelfilepath))); labelfilepath)));
} }
else else
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/dependency.c,v 1.39 2004/08/29 05:06:41 momjian Exp $ * $PostgreSQL: pgsql/src/backend/catalog/dependency.c,v 1.40 2004/10/12 21:54:36 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1623,7 +1623,7 @@ getObjectDescription(const ObjectAddress *object) ...@@ -1623,7 +1623,7 @@ getObjectDescription(const ObjectAddress *object)
else else
nspname = get_namespace_name(opcForm->opcnamespace); nspname = get_namespace_name(opcForm->opcnamespace);
appendStringInfo(&buffer, gettext("operator class %s for %s"), appendStringInfo(&buffer, gettext("operator class %s for access method %s"),
quote_qualified_identifier(nspname, quote_qualified_identifier(nspname,
NameStr(opcForm->opcname)), NameStr(opcForm->opcname)),
NameStr(amForm->amname)); NameStr(amForm->amname));
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.133 2004/09/23 23:20:24 tgl Exp $ * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.134 2004/10/12 21:54:36 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -5392,7 +5392,7 @@ ATPrepSetTableSpace(AlteredTableInfo *tab, Relation rel, char *tablespacename) ...@@ -5392,7 +5392,7 @@ ATPrepSetTableSpace(AlteredTableInfo *tab, Relation rel, char *tablespacename)
if (OidIsValid(tab->newTableSpace)) if (OidIsValid(tab->newTableSpace))
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR), (errcode(ERRCODE_SYNTAX_ERROR),
errmsg("multiple SET TABLESPACE subcommands are not valid"))); errmsg("cannot have multiple SET TABLESPACE subcommands")));
tab->newTableSpace = tablespaceId; tab->newTableSpace = tablespaceId;
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.129 2004/09/16 20:17:20 tgl Exp $ * $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.130 2004/10/12 21:54:37 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -188,7 +188,7 @@ AtEOXact_SPI(bool isCommit) ...@@ -188,7 +188,7 @@ AtEOXact_SPI(bool isCommit)
ereport(WARNING, ereport(WARNING,
(errcode(ERRCODE_WARNING), (errcode(ERRCODE_WARNING),
errmsg("transaction left non-empty SPI stack"), errmsg("transaction left non-empty SPI stack"),
errhint("Check for missing \"SPI_finish\" calls"))); errhint("Check for missing \"SPI_finish\" calls.")));
_SPI_current = _SPI_stack = NULL; _SPI_current = _SPI_stack = NULL;
_SPI_stack_depth = 0; _SPI_stack_depth = 0;
...@@ -1571,7 +1571,7 @@ _SPI_error_callback(void *arg) ...@@ -1571,7 +1571,7 @@ _SPI_error_callback(void *arg)
internalerrquery(query); internalerrquery(query);
} }
else else
errcontext("SQL query \"%s\"", query); errcontext("SQL statement \"%s\"", query);
} }
/* /*
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.118 2004/08/29 05:06:43 momjian Exp $ * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.119 2004/10/12 21:54:38 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -363,24 +363,24 @@ auth_failed(Port *port, int status) ...@@ -363,24 +363,24 @@ auth_failed(Port *port, int status)
switch (port->auth_method) switch (port->auth_method)
{ {
case uaReject: case uaReject:
errstr = gettext_noop("Rejected host: authentication failed for user \"%s\""); errstr = gettext_noop("authentication failed for user \"%s\": host rejected");
break; break;
case uaKrb4: case uaKrb4:
errstr = gettext_noop("Kerberos4 authentication failed for user \"%s\""); errstr = gettext_noop("Kerberos 4 authentication failed for user \"%s\"");
break; break;
case uaKrb5: case uaKrb5:
errstr = gettext_noop("Kerberos5 authentication failed for user \"%s\""); errstr = gettext_noop("Kerberos 5 authentication failed for user \"%s\"");
break; break;
case uaTrust: case uaTrust:
errstr = gettext_noop("Trusted authentication failed for user \"%s\""); errstr = gettext_noop("\"trust\" authentication failed for user \"%s\"");
break; break;
case uaIdent: case uaIdent:
errstr = gettext_noop("IDENT authentication failed for user \"%s\""); errstr = gettext_noop("Ident authentication failed for user \"%s\"");
break; break;
case uaMD5: case uaMD5:
case uaCrypt: case uaCrypt:
case uaPassword: case uaPassword:
errstr = gettext_noop("Password authentication failed for user \"%s\""); errstr = gettext_noop("password authentication failed for user \"%s\"");
break; break;
#ifdef USE_PAM #ifdef USE_PAM
case uaPAM: case uaPAM:
...@@ -388,7 +388,7 @@ auth_failed(Port *port, int status) ...@@ -388,7 +388,7 @@ auth_failed(Port *port, int status)
break; break;
#endif /* USE_PAM */ #endif /* USE_PAM */
default: default:
errstr = gettext_noop("Unknown auth method: authentication failed for user \"%s\""); errstr = gettext_noop("authentication failed for user \"%s\": invalid authentication method");
break; break;
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.132 2004/10/09 23:12:57 tgl Exp $ * $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.133 2004/10/12 21:54:38 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -737,7 +737,7 @@ parse_hba(List *line, int line_num, hbaPort *port, ...@@ -737,7 +737,7 @@ parse_hba(List *line, int line_num, hbaPort *port,
{ {
ereport(LOG, ereport(LOG,
(errcode(ERRCODE_CONFIG_FILE_ERROR), (errcode(ERRCODE_CONFIG_FILE_ERROR),
errmsg("invalid IP address \"%s\" in \"%s\" line %d: %s", errmsg("invalid IP address \"%s\" in file \"%s\" line %d: %s",
token, HbaFileName, line_num, token, HbaFileName, line_num,
gai_strerror(ret)))); gai_strerror(ret))));
if (cidr_slash) if (cidr_slash)
...@@ -772,7 +772,7 @@ parse_hba(List *line, int line_num, hbaPort *port, ...@@ -772,7 +772,7 @@ parse_hba(List *line, int line_num, hbaPort *port,
{ {
ereport(LOG, ereport(LOG,
(errcode(ERRCODE_CONFIG_FILE_ERROR), (errcode(ERRCODE_CONFIG_FILE_ERROR),
errmsg("invalid IP mask \"%s\" in \"%s\" line %d: %s", errmsg("invalid IP mask \"%s\" in file \"%s\" line %d: %s",
token, HbaFileName, line_num, token, HbaFileName, line_num,
gai_strerror(ret)))); gai_strerror(ret))));
if (gai_result) if (gai_result)
...@@ -787,7 +787,7 @@ parse_hba(List *line, int line_num, hbaPort *port, ...@@ -787,7 +787,7 @@ parse_hba(List *line, int line_num, hbaPort *port,
{ {
ereport(LOG, ereport(LOG,
(errcode(ERRCODE_CONFIG_FILE_ERROR), (errcode(ERRCODE_CONFIG_FILE_ERROR),
errmsg("IP address and mask do not match in \"%s\" line %d", errmsg("IP address and mask do not match in file \"%s\" line %d",
HbaFileName, line_num))); HbaFileName, line_num)));
goto hba_other_error; goto hba_other_error;
} }
...@@ -845,13 +845,13 @@ hba_syntax: ...@@ -845,13 +845,13 @@ hba_syntax:
if (line_item) if (line_item)
ereport(LOG, ereport(LOG,
(errcode(ERRCODE_CONFIG_FILE_ERROR), (errcode(ERRCODE_CONFIG_FILE_ERROR),
errmsg("invalid entry in \"%s\" at line %d, token \"%s\"", errmsg("invalid entry in file \"%s\" at line %d, token \"%s\"",
HbaFileName, line_num, HbaFileName, line_num,
(char *) lfirst(line_item)))); (char *) lfirst(line_item))));
else else
ereport(LOG, ereport(LOG,
(errcode(ERRCODE_CONFIG_FILE_ERROR), (errcode(ERRCODE_CONFIG_FILE_ERROR),
errmsg("missing field in \"%s\" at end of line %d", errmsg("missing field in file \"%s\" at end of line %d",
HbaFileName, line_num))); HbaFileName, line_num)));
/* Come here if suitable message already logged */ /* Come here if suitable message already logged */
...@@ -1101,13 +1101,13 @@ ident_syntax: ...@@ -1101,13 +1101,13 @@ ident_syntax:
if (line_item) if (line_item)
ereport(LOG, ereport(LOG,
(errcode(ERRCODE_CONFIG_FILE_ERROR), (errcode(ERRCODE_CONFIG_FILE_ERROR),
errmsg("invalid entry in \"%s\" at line %d, token \"%s\"", errmsg("invalid entry in file \"%s\" at line %d, token \"%s\"",
IdentFileName, line_number, IdentFileName, line_number,
(const char *) lfirst(line_item)))); (const char *) lfirst(line_item))));
else else
ereport(LOG, ereport(LOG,
(errcode(ERRCODE_CONFIG_FILE_ERROR), (errcode(ERRCODE_CONFIG_FILE_ERROR),
errmsg("missing entry in \"%s\" at end of line %d", errmsg("missing entry in file \"%s\" at end of line %d",
IdentFileName, line_number))); IdentFileName, line_number)));
*error_p = true; *error_p = true;
...@@ -1634,7 +1634,7 @@ authident(hbaPort *port) ...@@ -1634,7 +1634,7 @@ authident(hbaPort *port)
} }
ereport(DEBUG1, ereport(DEBUG1,
(errmsg("IDENT code identifies remote user as \"%s\"", (errmsg("Ident protocol identifies remote user as \"%s\"",
ident_user))); ident_user)));
if (check_ident_usermap(port->auth_arg, port->user_name, ident_user)) if (check_ident_usermap(port->auth_arg, port->user_name, ident_user))
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.90 2004/09/24 06:29:07 neilc Exp $ * $PostgreSQL: pgsql/src/backend/main/main.c,v 1.91 2004/10/12 21:54:38 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -243,9 +243,9 @@ main(int argc, char *argv[]) ...@@ -243,9 +243,9 @@ main(int argc, char *argv[])
#else /* WIN32 */ #else /* WIN32 */
if (pgwin32_is_admin()) if (pgwin32_is_admin())
{ {
write_stderr("execution of PostgreSQL by a user with administrative permissions is not permitted.\n" write_stderr("Execution of PostgreSQL by a user with administrative permissions is not permitted.\n"
"The server must be started under an unprivileged user ID to prevent\n" "The server must be started under an unprivileged user ID to prevent\n"
"possible system security compromise. See the documentation for\n" "possible system security compromises. See the documentation for\n"
"more information on how to properly start the server.\n"); "more information on how to properly start the server.\n");
exit(1); exit(1);
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/port/win32/security.c,v 1.4 2004/08/29 05:06:46 momjian Exp $ * $PostgreSQL: pgsql/src/backend/port/win32/security.c,v 1.5 2004/10/12 21:54:39 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -36,20 +36,20 @@ pgwin32_is_admin(void) ...@@ -36,20 +36,20 @@ pgwin32_is_admin(void)
if (!OpenProcessToken(GetCurrentProcess(), TOKEN_READ, &AccessToken)) if (!OpenProcessToken(GetCurrentProcess(), TOKEN_READ, &AccessToken))
{ {
write_stderr("failed to open process token: %d\n", write_stderr("could not open process token: %d\n",
(int) GetLastError()); (int) GetLastError());
exit(1); exit(1);
} }
if (GetTokenInformation(AccessToken, TokenGroups, NULL, 0, &InfoBufferSize)) if (GetTokenInformation(AccessToken, TokenGroups, NULL, 0, &InfoBufferSize))
{ {
write_stderr("failed to get token information - got zero size!\n"); write_stderr("could not get token information: got zero size\n");
exit(1); exit(1);
} }
if (GetLastError() != ERROR_INSUFFICIENT_BUFFER) if (GetLastError() != ERROR_INSUFFICIENT_BUFFER)
{ {
write_stderr("failed to get token information: %d\n", write_stderr("could not get token information: %d\n",
(int) GetLastError()); (int) GetLastError());
exit(1); exit(1);
} }
...@@ -57,7 +57,7 @@ pgwin32_is_admin(void) ...@@ -57,7 +57,7 @@ pgwin32_is_admin(void)
InfoBuffer = malloc(InfoBufferSize); InfoBuffer = malloc(InfoBufferSize);
if (!InfoBuffer) if (!InfoBuffer)
{ {
write_stderr("failed to allocate %i bytes for token information!\n", write_stderr("could not allocate %i bytes for token information\n",
(int) InfoBufferSize); (int) InfoBufferSize);
exit(1); exit(1);
} }
...@@ -66,7 +66,7 @@ pgwin32_is_admin(void) ...@@ -66,7 +66,7 @@ pgwin32_is_admin(void)
if (!GetTokenInformation(AccessToken, TokenGroups, InfoBuffer, if (!GetTokenInformation(AccessToken, TokenGroups, InfoBuffer,
InfoBufferSize, &InfoBufferSize)) InfoBufferSize, &InfoBufferSize))
{ {
write_stderr("failed to get token information: %d\n", write_stderr("could not get token information: %d\n",
(int) GetLastError()); (int) GetLastError());
exit(1); exit(1);
} }
...@@ -77,7 +77,7 @@ pgwin32_is_admin(void) ...@@ -77,7 +77,7 @@ pgwin32_is_admin(void)
SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0,
0, &AdministratorsSid)) 0, &AdministratorsSid))
{ {
write_stderr("failed to get SID for Administrators group: %d\n", write_stderr("could not get SID for Administrators group: %d\n",
(int) GetLastError()); (int) GetLastError());
exit(1); exit(1);
} }
...@@ -86,7 +86,7 @@ pgwin32_is_admin(void) ...@@ -86,7 +86,7 @@ pgwin32_is_admin(void)
SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_POWER_USERS, 0, 0, 0, 0, 0, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_POWER_USERS, 0, 0, 0, 0, 0,
0, &PowerUsersSid)) 0, &PowerUsersSid))
{ {
write_stderr("failed to get SID for PowerUsers group: %d\n", write_stderr("could not get SID for PowerUsers group: %d\n",
(int) GetLastError()); (int) GetLastError());
exit(1); exit(1);
} }
...@@ -146,7 +146,7 @@ pgwin32_is_service(void) ...@@ -146,7 +146,7 @@ pgwin32_is_service(void)
if (!OpenProcessToken(GetCurrentProcess(), TOKEN_READ, &AccessToken)) if (!OpenProcessToken(GetCurrentProcess(), TOKEN_READ, &AccessToken))
{ {
fprintf(stderr, "failed to open process token: %d\n", fprintf(stderr, "could not open process token: %d\n",
(int) GetLastError()); (int) GetLastError());
return -1; return -1;
} }
...@@ -154,7 +154,7 @@ pgwin32_is_service(void) ...@@ -154,7 +154,7 @@ pgwin32_is_service(void)
/* First check for local system */ /* First check for local system */
if (!GetTokenInformation(AccessToken, TokenUser, InfoBuffer, 1024, &InfoBufferSize)) if (!GetTokenInformation(AccessToken, TokenUser, InfoBuffer, 1024, &InfoBufferSize))
{ {
fprintf(stderr, "failed to get token information: %d\n", fprintf(stderr, "could not get token information: %d\n",
(int) GetLastError()); (int) GetLastError());
return -1; return -1;
} }
...@@ -163,7 +163,7 @@ pgwin32_is_service(void) ...@@ -163,7 +163,7 @@ pgwin32_is_service(void)
SECURITY_LOCAL_SYSTEM_RID, 0, 0, 0, 0, 0, 0, 0, SECURITY_LOCAL_SYSTEM_RID, 0, 0, 0, 0, 0, 0, 0,
&LocalSystemSid)) &LocalSystemSid))
{ {
fprintf(stderr, "failed to get SID for local system account\n"); fprintf(stderr, "could not get SID for local system account\n");
CloseHandle(AccessToken); CloseHandle(AccessToken);
return -1; return -1;
} }
...@@ -181,7 +181,7 @@ pgwin32_is_service(void) ...@@ -181,7 +181,7 @@ pgwin32_is_service(void)
/* Now check for group SID */ /* Now check for group SID */
if (!GetTokenInformation(AccessToken, TokenGroups, InfoBuffer, 1024, &InfoBufferSize)) if (!GetTokenInformation(AccessToken, TokenGroups, InfoBuffer, 1024, &InfoBufferSize))
{ {
fprintf(stderr, "failed to get token information: %d\n", fprintf(stderr, "could not get token information: %d\n",
(int) GetLastError()); (int) GetLastError());
return -1; return -1;
} }
...@@ -190,7 +190,7 @@ pgwin32_is_service(void) ...@@ -190,7 +190,7 @@ pgwin32_is_service(void)
SECURITY_SERVICE_RID, 0, 0, 0, 0, 0, 0, 0, SECURITY_SERVICE_RID, 0, 0, 0, 0, 0, 0, 0,
&ServiceSid)) &ServiceSid))
{ {
fprintf(stderr, "failed to get SID for service group\n"); fprintf(stderr, "could not get SID for service group\n");
CloseHandle(AccessToken); CloseHandle(AccessToken);
return -1; return -1;
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/port/win32/signal.c,v 1.7 2004/08/29 05:06:46 momjian Exp $ * $PostgreSQL: pgsql/src/backend/port/win32/signal.c,v 1.8 2004/10/12 21:54:39 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -224,7 +224,7 @@ pg_signal_thread(LPVOID param) ...@@ -224,7 +224,7 @@ pg_signal_thread(LPVOID param)
PIPE_UNLIMITED_INSTANCES, 16, 16, 1000, NULL); PIPE_UNLIMITED_INSTANCES, 16, 16, 1000, NULL);
if (pipe == INVALID_HANDLE_VALUE) if (pipe == INVALID_HANDLE_VALUE)
{ {
write_stderr("failed to create signal listener pipe: %d. Retrying.\n", (int) GetLastError()); write_stderr("could not create signal listener pipe: %d; retrying\n", (int) GetLastError());
SleepEx(500, FALSE); SleepEx(500, FALSE);
continue; continue;
} }
...@@ -236,7 +236,7 @@ pg_signal_thread(LPVOID param) ...@@ -236,7 +236,7 @@ pg_signal_thread(LPVOID param)
(LPTHREAD_START_ROUTINE) pg_signal_dispatch_thread, (LPTHREAD_START_ROUTINE) pg_signal_dispatch_thread,
(LPVOID) pipe, 0, NULL); (LPVOID) pipe, 0, NULL);
if (hThread == INVALID_HANDLE_VALUE) if (hThread == INVALID_HANDLE_VALUE)
write_stderr("failed to create signal dispatch thread: %d\n", write_stderr("could not create signal dispatch thread: %d\n",
(int) GetLastError()); (int) GetLastError());
else else
CloseHandle(hThread); CloseHandle(hThread);
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.8 2004/08/29 05:06:46 momjian Exp $ * $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.9 2004/10/12 21:54:40 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -487,7 +487,7 @@ BgWriterShmemInit(void) ...@@ -487,7 +487,7 @@ BgWriterShmemInit(void)
if (BgWriterShmem == NULL) if (BgWriterShmem == NULL)
ereport(FATAL, ereport(FATAL,
(errcode(ERRCODE_OUT_OF_MEMORY), (errcode(ERRCODE_OUT_OF_MEMORY),
errmsg("insufficient shared memory for bgwriter"))); errmsg("not enough shared memory for background writer")));
if (found) if (found)
return; /* already initialized */ return; /* already initialized */
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.431 2004/10/09 23:13:02 tgl Exp $ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.432 2004/10/12 21:54:40 petere Exp $
* *
* NOTES * NOTES
* *
...@@ -796,7 +796,7 @@ PostmasterMain(int argc, char *argv[]) ...@@ -796,7 +796,7 @@ PostmasterMain(int argc, char *argv[])
/* Should we remove the pid file on postmaster exit? */ /* Should we remove the pid file on postmaster exit? */
} }
else else
write_stderr("%s: could not write external pid file \"%s\": %s\n", write_stderr("%s: could not write external PID file \"%s\": %s\n",
progname, external_pid_file, strerror(errno)); progname, external_pid_file, strerror(errno));
} }
...@@ -3759,7 +3759,7 @@ win32_sigchld_waiter(LPVOID param) ...@@ -3759,7 +3759,7 @@ win32_sigchld_waiter(LPVOID param)
if (r == WAIT_OBJECT_0) if (r == WAIT_OBJECT_0)
pg_queue_signal(SIGCHLD); pg_queue_signal(SIGCHLD);
else else
write_stderr("ERROR: failed to wait on child process handle: %d\n", write_stderr("could not wait on child process handle: %d\n",
(int) GetLastError()); (int) GetLastError());
CloseHandle(procHandle); CloseHandle(procHandle);
return 0; return 0;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.9 2004/09/21 00:21:25 tgl Exp $ * $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.10 2004/10/12 21:54:40 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -402,7 +402,7 @@ SysLogger_Start(void) ...@@ -402,7 +402,7 @@ SysLogger_Start(void)
if (pgpipe(syslogPipe) < 0) if (pgpipe(syslogPipe) < 0)
ereport(FATAL, ereport(FATAL,
(errcode_for_socket_access(), (errcode_for_socket_access(),
(errmsg("could not create pipe for syslogging: %m")))); (errmsg("could not create pipe for syslog: %m"))));
} }
#else #else
if (!syslogPipe[0]) if (!syslogPipe[0])
...@@ -444,7 +444,7 @@ SysLogger_Start(void) ...@@ -444,7 +444,7 @@ SysLogger_Start(void)
if (!syslogFile) if (!syslogFile)
ereport(FATAL, ereport(FATAL,
(errcode_for_file_access(), (errcode_for_file_access(),
(errmsg("could not create logfile \"%s\": %m", (errmsg("could not create log file \"%s\": %m",
filename)))); filename))));
setvbuf(syslogFile, NULL, LBF_MODE, 0); setvbuf(syslogFile, NULL, LBF_MODE, 0);
...@@ -700,7 +700,7 @@ write_syslogger_file_binary(const char *buffer, int count) ...@@ -700,7 +700,7 @@ write_syslogger_file_binary(const char *buffer, int count)
if (rc != count) if (rc != count)
ereport(LOG, ereport(LOG,
(errcode_for_file_access(), (errcode_for_file_access(),
errmsg("could not write to logfile: %m"))); errmsg("could not write to log file: %m")));
} }
#ifdef WIN32 #ifdef WIN32
...@@ -787,7 +787,7 @@ logfile_rotate(bool time_based_rotation) ...@@ -787,7 +787,7 @@ logfile_rotate(bool time_based_rotation)
ereport(LOG, ereport(LOG,
(errcode_for_file_access(), (errcode_for_file_access(),
errmsg("could not open new logfile \"%s\": %m", errmsg("could not open new log file \"%s\": %m",
filename))); filename)));
/* /*
...@@ -799,7 +799,7 @@ logfile_rotate(bool time_based_rotation) ...@@ -799,7 +799,7 @@ logfile_rotate(bool time_based_rotation)
if (saveerrno != ENFILE && saveerrno != EMFILE) if (saveerrno != ENFILE && saveerrno != EMFILE)
{ {
ereport(LOG, ereport(LOG,
(errmsg("disabling auto rotation (use SIGHUP to reenable)"))); (errmsg("disabling automatic rotation (use SIGHUP to reenable)")));
Log_RotationAge = 0; Log_RotationAge = 0;
Log_RotationSize = 0; Log_RotationSize = 0;
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.434 2004/10/08 01:36:35 tgl Exp $ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.435 2004/10/12 21:54:40 petere Exp $
* *
* NOTES * NOTES
* this is the "main" module of the postgres backend and * this is the "main" module of the postgres backend and
...@@ -2127,7 +2127,7 @@ usage(const char *progname) ...@@ -2127,7 +2127,7 @@ usage(const char *progname)
printf(gettext(" -o FILENAME send stdout and stderr to given file\n")); printf(gettext(" -o FILENAME send stdout and stderr to given file\n"));
printf(gettext(" -P disable system indexes\n")); printf(gettext(" -P disable system indexes\n"));
printf(gettext(" -s show statistics after each query\n")); printf(gettext(" -s show statistics after each query\n"));
printf(gettext(" -S WORK-MEM set amount of memory for sorts (in kbytes)\n")); printf(gettext(" -S WORK-MEM set amount of memory for sorts (in kB)\n"));
printf(gettext(" --describe-config describe configuration parameters, then exit\n")); printf(gettext(" --describe-config describe configuration parameters, then exit\n"));
printf(gettext(" --help show this help, then exit\n")); printf(gettext(" --help show this help, then exit\n"));
printf(gettext(" --version output version information, then exit\n")); printf(gettext(" --version output version information, then exit\n"));
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/misc.c,v 1.38 2004/08/29 05:06:49 momjian Exp $ * $PostgreSQL: pgsql/src/backend/utils/adt/misc.c,v 1.39 2004/10/12 21:54:41 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -174,7 +174,7 @@ pg_tablespace_databases(PG_FUNCTION_ARGS) ...@@ -174,7 +174,7 @@ pg_tablespace_databases(PG_FUNCTION_ARGS)
errmsg("could not open directory \"%s\": %m", errmsg("could not open directory \"%s\": %m",
fctx->location))); fctx->location)));
ereport(WARNING, ereport(WARNING,
(errmsg("%u is not a tablespace oid", tablespaceOid))); (errmsg("%u is not a tablespace OID", tablespaceOid)));
} }
} }
funcctx->user_fctx = fctx; funcctx->user_fctx = fctx;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>. * Written by Peter Eisentraut <peter_e@gmx.net>.
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.242 2004/10/10 23:37:28 neilc Exp $ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.243 2004/10/12 21:54:42 petere Exp $
* *
*-------------------------------------------------------------------- *--------------------------------------------------------------------
*/ */
...@@ -489,7 +489,7 @@ static struct config_bool ConfigureNamesBool[] = ...@@ -489,7 +489,7 @@ static struct config_bool ConfigureNamesBool[] =
}, },
{ {
{"log_disconnections", PGC_BACKEND, LOGGING_WHAT, {"log_disconnections", PGC_BACKEND, LOGGING_WHAT,
gettext_noop("Logs end of a session, including duration"), gettext_noop("Logs end of a session, including duration."),
NULL NULL
}, },
&Log_disconnections, &Log_disconnections,
...@@ -805,7 +805,7 @@ static struct config_bool ConfigureNamesBool[] = ...@@ -805,7 +805,7 @@ static struct config_bool ConfigureNamesBool[] =
}, },
{ {
{"default_with_oids", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS, {"default_with_oids", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS,
gettext_noop("By default, newly-created tables should have OIDs"), gettext_noop("By default, newly-created tables should have OIDs."),
NULL NULL
}, },
&default_with_oids, &default_with_oids,
...@@ -813,7 +813,7 @@ static struct config_bool ConfigureNamesBool[] = ...@@ -813,7 +813,7 @@ static struct config_bool ConfigureNamesBool[] =
}, },
{ {
{"redirect_stderr", PGC_POSTMASTER, LOGGING_WHERE, {"redirect_stderr", PGC_POSTMASTER, LOGGING_WHERE,
gettext_noop("Start a subprocess to capture stderr output into log files"), gettext_noop("Start a subprocess to capture stderr output into log files."),
NULL NULL
}, },
&Redirect_stderr, &Redirect_stderr,
...@@ -821,7 +821,7 @@ static struct config_bool ConfigureNamesBool[] = ...@@ -821,7 +821,7 @@ static struct config_bool ConfigureNamesBool[] =
}, },
{ {
{"log_truncate_on_rotation", PGC_SIGHUP, LOGGING_WHERE, {"log_truncate_on_rotation", PGC_SIGHUP, LOGGING_WHERE,
gettext_noop("Truncate existing log files of same name during log rotation"), gettext_noop("Truncate existing log files of same name during log rotation."),
NULL NULL
}, },
&Log_truncate_on_rotation, &Log_truncate_on_rotation,
...@@ -1273,7 +1273,7 @@ static struct config_int ConfigureNamesInt[] = ...@@ -1273,7 +1273,7 @@ static struct config_int ConfigureNamesInt[] =
{ {
{"log_rotation_age", PGC_SIGHUP, LOGGING_WHERE, {"log_rotation_age", PGC_SIGHUP, LOGGING_WHERE,
gettext_noop("Automatic logfile rotation will occur after N minutes"), gettext_noop("Automatic log file rotation will occur after N minutes"),
NULL NULL
}, },
&Log_RotationAge, &Log_RotationAge,
...@@ -1282,7 +1282,7 @@ static struct config_int ConfigureNamesInt[] = ...@@ -1282,7 +1282,7 @@ static struct config_int ConfigureNamesInt[] =
{ {
{"log_rotation_size", PGC_SIGHUP, LOGGING_WHERE, {"log_rotation_size", PGC_SIGHUP, LOGGING_WHERE,
gettext_noop("Automatic logfile rotation will occur after N kilobytes"), gettext_noop("Automatic log file rotation will occur after N kilobytes"),
NULL NULL
}, },
&Log_RotationSize, &Log_RotationSize,
...@@ -1291,7 +1291,7 @@ static struct config_int ConfigureNamesInt[] = ...@@ -1291,7 +1291,7 @@ static struct config_int ConfigureNamesInt[] =
{ {
{"max_function_args", PGC_INTERNAL, PRESET_OPTIONS, {"max_function_args", PGC_INTERNAL, PRESET_OPTIONS,
gettext_noop("Shows the maximum number of function arguments"), gettext_noop("Shows the maximum number of function arguments."),
NULL, NULL,
GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE
}, },
...@@ -1301,7 +1301,7 @@ static struct config_int ConfigureNamesInt[] = ...@@ -1301,7 +1301,7 @@ static struct config_int ConfigureNamesInt[] =
{ {
{"max_index_keys", PGC_INTERNAL, PRESET_OPTIONS, {"max_index_keys", PGC_INTERNAL, PRESET_OPTIONS,
gettext_noop("Shows the maximum number of index keys"), gettext_noop("Shows the maximum number of index keys."),
NULL, NULL,
GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE
}, },
...@@ -1671,8 +1671,8 @@ static struct config_string ConfigureNamesString[] = ...@@ -1671,8 +1671,8 @@ static struct config_string ConfigureNamesString[] =
{ {
{"log_destination", PGC_SIGHUP, LOGGING_WHERE, {"log_destination", PGC_SIGHUP, LOGGING_WHERE,
gettext_noop("Sets the destination for server log output."), gettext_noop("Sets the destination for server log output."),
gettext_noop("Valid values are combinations of stderr, syslog " gettext_noop("Valid values are combinations of \"stderr\", \"syslog\", "
"and eventlog, depending on platform."), "and \"eventlog\", depending on the platform."),
GUC_LIST_INPUT GUC_LIST_INPUT
}, },
&log_destination_string, &log_destination_string,
...@@ -1786,7 +1786,7 @@ static struct config_string ConfigureNamesString[] = ...@@ -1786,7 +1786,7 @@ static struct config_string ConfigureNamesString[] =
{ {
{"data_directory", PGC_POSTMASTER, FILE_LOCATIONS, {"data_directory", PGC_POSTMASTER, FILE_LOCATIONS,
gettext_noop("Sets the server's data directory"), gettext_noop("Sets the server's data directory."),
NULL NULL
}, },
&data_directory, &data_directory,
...@@ -1795,7 +1795,7 @@ static struct config_string ConfigureNamesString[] = ...@@ -1795,7 +1795,7 @@ static struct config_string ConfigureNamesString[] =
{ {
{"config_file", PGC_POSTMASTER, FILE_LOCATIONS, {"config_file", PGC_POSTMASTER, FILE_LOCATIONS,
gettext_noop("Sets the server's main configuration file"), gettext_noop("Sets the server's main configuration file."),
NULL, NULL,
GUC_DISALLOW_IN_FILE GUC_DISALLOW_IN_FILE
}, },
...@@ -1823,7 +1823,7 @@ static struct config_string ConfigureNamesString[] = ...@@ -1823,7 +1823,7 @@ static struct config_string ConfigureNamesString[] =
{ {
{"external_pid_file", PGC_POSTMASTER, FILE_LOCATIONS, {"external_pid_file", PGC_POSTMASTER, FILE_LOCATIONS,
gettext_noop("Writes the postmaster PID to the specified file"), gettext_noop("Writes the postmaster PID to the specified file."),
NULL NULL
}, },
&external_pid_file, &external_pid_file,
...@@ -2480,7 +2480,7 @@ SelectConfigFiles(const char *userDoption, const char *progname) ...@@ -2480,7 +2480,7 @@ SelectConfigFiles(const char *userDoption, const char *progname)
else if (!configdir) else if (!configdir)
{ {
write_stderr("%s does not know where to find the server configuration file.\n" write_stderr("%s does not know where to find the server configuration file.\n"
"You must specify the --config_file or -D invocation " "You must specify the --config-file or -D invocation "
"option or set the PGDATA environment variable.\n", "option or set the PGDATA environment variable.\n",
progname); progname);
return false; return false;
...@@ -5403,7 +5403,7 @@ assign_log_destination(const char *value, bool doit, GucSource source) ...@@ -5403,7 +5403,7 @@ assign_log_destination(const char *value, bool doit, GucSource source)
if (source >= PGC_S_INTERACTIVE) if (source >= PGC_S_INTERACTIVE)
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE), (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("unrecognised \"log_destination\" key word: \"%s\"", errmsg("unrecognized \"log_destination\" key word: \"%s\"",
tok))); tok)));
pfree(rawstring); pfree(rawstring);
list_free(elemlist); list_free(elemlist);
...@@ -5685,7 +5685,7 @@ assign_custom_variable_classes(const char *newval, bool doit, GucSource source) ...@@ -5685,7 +5685,7 @@ assign_custom_variable_classes(const char *newval, bool doit, GucSource source)
*/ */
ereport(LOG, ereport(LOG,
(errcode(ERRCODE_SYNTAX_ERROR), (errcode(ERRCODE_SYNTAX_ERROR),
errmsg("invalid syntax for custom_variable_classes: \"%s\"", newval))); errmsg("invalid syntax for \"custom_variable_classes\": \"%s\"", newval)));
pfree(buf.data); pfree(buf.data);
return NULL; return NULL;
} }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD. * Portions taken from FreeBSD.
* *
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.60 2004/10/10 23:37:31 neilc Exp $ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.61 2004/10/12 21:54:42 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -2023,10 +2023,10 @@ usage(const char *progname) ...@@ -2023,10 +2023,10 @@ usage(const char *progname)
" in the respective category (default taken from\n" " in the respective category (default taken from\n"
" environment)\n")); " environment)\n"));
printf(_(" --no-locale equivalent to --locale=C\n")); printf(_(" --no-locale equivalent to --locale=C\n"));
printf(_(" -A, --auth=method default authentication method for local connections\n")); printf(_(" -A, --auth=METHOD default authentication method for local connections\n"));
printf(_(" -U, --username=NAME database superuser name\n")); printf(_(" -U, --username=NAME database superuser name\n"));
printf(_(" -W, --pwprompt prompt for a password for the new superuser\n")); printf(_(" -W, --pwprompt prompt for a password for the new superuser\n"));
printf(_(" --pwfile=filename read password for the new superuser from file\n")); printf(_(" --pwfile=FILE read password for the new superuser from file\n"));
printf(_(" -?, --help show this help, then exit\n")); printf(_(" -?, --help show this help, then exit\n"));
printf(_(" -V, --version output version information, then exit\n")); printf(_(" -V, --version output version information, then exit\n"));
printf(_("\nLess commonly used options:\n")); printf(_("\nLess commonly used options:\n"));
...@@ -2190,13 +2190,13 @@ main(int argc, char *argv[]) ...@@ -2190,13 +2190,13 @@ main(int argc, char *argv[])
if (pwprompt && pwfilename) if (pwprompt && pwfilename)
{ {
fprintf(stderr, _("%s: you cannot specify both password prompt and password file\n"), progname); fprintf(stderr, _("%s: password prompt and password file may not be specified together\n"), progname);
exit(1); exit(1);
} }
if (authmethod == NULL || !strlen(authmethod)) if (authmethod == NULL || !strlen(authmethod))
{ {
authwarning = _("\nWARNING: enabling \"trust\" authentication for local connections.\n" authwarning = _("\nWARNING: enabling \"trust\" authentication for local connections\n"
"You can change this by editing pg_hba.conf or using the -A flag the\n" "You can change this by editing pg_hba.conf or using the -A flag the\n"
"next time you run initdb.\n"); "next time you run initdb.\n");
authmethod = "trust"; authmethod = "trust";
...@@ -2220,7 +2220,7 @@ main(int argc, char *argv[]) ...@@ -2220,7 +2220,7 @@ main(int argc, char *argv[])
* local connections and are rejected in hba.c * local connections and are rejected in hba.c
*/ */
{ {
fprintf(stderr, _("%s: unknown authentication method \"%s\".\n"), progname, authmethod); fprintf(stderr, _("%s: unrecognized authentication method \"%s\"\n"), progname, authmethod);
exit(1); exit(1);
} }
...@@ -2229,7 +2229,7 @@ main(int argc, char *argv[]) ...@@ -2229,7 +2229,7 @@ main(int argc, char *argv[])
!strcmp(authmethod, "password")) && !strcmp(authmethod, "password")) &&
!(pwprompt || pwfilename)) !(pwprompt || pwfilename))
{ {
fprintf(stderr, _("%s: you need to specify a password for the superuser to enable %s authentication.\n"), progname, authmethod); fprintf(stderr, _("%s: must specify a password for the superuser to enable %s authentication\n"), progname, authmethod);
exit(1); exit(1);
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.33 2004/10/10 23:37:37 neilc Exp $ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.34 2004/10/12 21:54:43 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -228,7 +228,8 @@ get_pgpid(void) ...@@ -228,7 +228,8 @@ get_pgpid(void)
return 0; return 0;
else else
{ {
perror("openning pid file"); write_stderr(_("%s: could not open PID file \"%s\": %s"),
progname, pid_file, strerror(errno));
exit(1); exit(1);
} }
} }
...@@ -444,13 +445,14 @@ do_start(void) ...@@ -444,13 +445,14 @@ do_start(void)
pgpid_t pid; pgpid_t pid;
pgpid_t old_pid = 0; pgpid_t old_pid = 0;
char *optline = NULL; char *optline = NULL;
int exitcode;
if (ctl_command != RESTART_COMMAND) if (ctl_command != RESTART_COMMAND)
{ {
old_pid = get_pgpid(); old_pid = get_pgpid();
if (old_pid != 0) if (old_pid != 0)
write_stderr(_("%s: Another postmaster may be running. " write_stderr(_("%s: another postmaster may be running; "
"Trying to start postmaster anyway.\n"), "trying to start postmaster anyway\n"),
progname); progname);
} }
...@@ -467,13 +469,13 @@ do_start(void) ...@@ -467,13 +469,13 @@ do_start(void)
post_opts = ""; post_opts = "";
else else
{ {
write_stderr(_("%s: cannot read %s\n"), progname, postopts_file); write_stderr(_("%s: could not read file \"%s\"\n"), progname, postopts_file);
exit(1); exit(1);
} }
} }
else if (optlines[0] == NULL || optlines[1] != NULL) else if (optlines[0] == NULL || optlines[1] != NULL)
{ {
write_stderr(_("%s: option file %s must have exactly 1 line\n"), write_stderr(_("%s: option file \"%s\" must have exactly 1 line\n"),
progname, ctl_command == RESTART_COMMAND ? progname, ctl_command == RESTART_COMMAND ?
postopts_file : def_postopts_file); postopts_file : def_postopts_file);
exit(1); exit(1);
...@@ -534,9 +536,11 @@ do_start(void) ...@@ -534,9 +536,11 @@ do_start(void)
postgres_path = postmaster_path; postgres_path = postmaster_path;
} }
if (start_postmaster() != 0) exitcode = start_postmaster();
if (exitcode != 0)
{ {
write_stderr(_("Unable to run the postmaster binary\n")); write_stderr(_("%s: could not start postmaster: exit code was %d\n"),
progname, exitcode);
exit(1); exit(1);
} }
...@@ -546,8 +550,8 @@ do_start(void) ...@@ -546,8 +550,8 @@ do_start(void)
pid = get_pgpid(); pid = get_pgpid();
if (pid == old_pid) if (pid == old_pid)
{ {
write_stderr(_("%s: cannot start postmaster\n" write_stderr(_("%s: could not start postmaster\n"
"Examine the log output\n"), "Examine the log output.\n"),
progname); progname);
exit(1); exit(1);
} }
...@@ -582,7 +586,7 @@ do_stop(void) ...@@ -582,7 +586,7 @@ do_stop(void)
if (pid == 0) /* no pid file */ if (pid == 0) /* no pid file */
{ {
write_stderr(_("%s: could not find %s\n"), progname, pid_file); write_stderr(_("%s: PID file \"%s\" does not exist\n"), progname, pid_file);
write_stderr(_("Is postmaster running?\n")); write_stderr(_("Is postmaster running?\n"));
exit(1); exit(1);
} }
...@@ -597,7 +601,7 @@ do_stop(void) ...@@ -597,7 +601,7 @@ do_stop(void)
if (kill((pid_t) pid, sig) != 0) if (kill((pid_t) pid, sig) != 0)
{ {
write_stderr(_("stop signal failed (PID: %ld): %s\n"), pid, write_stderr(_("%s: could not send stop signal (PID: %ld): %s\n"), progname, pid,
strerror(errno)); strerror(errno));
exit(1); exit(1);
} }
...@@ -612,7 +616,7 @@ do_stop(void) ...@@ -612,7 +616,7 @@ do_stop(void)
{ {
if (!silence_echo) if (!silence_echo)
{ {
printf(_("waiting for postmaster to shut down...")); printf(_("waiting for postmaster to shut down... "));
fflush(stdout); fflush(stdout);
} }
...@@ -634,7 +638,7 @@ do_stop(void) ...@@ -634,7 +638,7 @@ do_stop(void)
if (pid != 0) /* pid file still exists */ if (pid != 0) /* pid file still exists */
{ {
if (!silence_echo) if (!silence_echo)
printf(_(" failed\n")); printf(_("failed\n"));
write_stderr(_("%s: postmaster does not shut down\n"), progname); write_stderr(_("%s: postmaster does not shut down\n"), progname);
exit(1); exit(1);
...@@ -661,7 +665,7 @@ do_restart(void) ...@@ -661,7 +665,7 @@ do_restart(void)
if (pid == 0) /* no pid file */ if (pid == 0) /* no pid file */
{ {
write_stderr(_("%s: could not find %s\n"), progname, pid_file); write_stderr(_("%s: PID file \"%s\" does not exist\n"), progname, pid_file);
write_stderr(_("Is postmaster running?\nstarting postmaster anyway\n")); write_stderr(_("Is postmaster running?\nstarting postmaster anyway\n"));
do_start(); do_start();
return; return;
...@@ -678,7 +682,7 @@ do_restart(void) ...@@ -678,7 +682,7 @@ do_restart(void)
if (kill((pid_t) pid, sig) != 0) if (kill((pid_t) pid, sig) != 0)
{ {
write_stderr(_("stop signal failed (PID: %ld): %s\n"), pid, write_stderr(_("%s: could not send stop signal (PID: %ld): %s\n"), progname, pid,
strerror(errno)); strerror(errno));
exit(1); exit(1);
} }
...@@ -731,7 +735,7 @@ do_reload(void) ...@@ -731,7 +735,7 @@ do_reload(void)
pid = get_pgpid(); pid = get_pgpid();
if (pid == 0) /* no pid file */ if (pid == 0) /* no pid file */
{ {
write_stderr(_("%s: could not find %s\n"), progname, pid_file); write_stderr(_("%s: PID file \"%s\" does not exist\n"), progname, pid_file);
write_stderr(_("Is postmaster running?\n")); write_stderr(_("Is postmaster running?\n"));
exit(1); exit(1);
} }
...@@ -747,7 +751,7 @@ do_reload(void) ...@@ -747,7 +751,7 @@ do_reload(void)
if (kill((pid_t) pid, sig) != 0) if (kill((pid_t) pid, sig) != 0)
{ {
write_stderr(_("reload signal failed (PID: %ld): %s\n"), pid, write_stderr(_("could not send reload signal (PID: %ld): %s\n"), pid,
strerror(errno)); strerror(errno));
exit(1); exit(1);
} }
...@@ -797,7 +801,7 @@ do_kill(pgpid_t pid) ...@@ -797,7 +801,7 @@ do_kill(pgpid_t pid)
{ {
if (kill((pid_t) pid, sig) != 0) if (kill((pid_t) pid, sig) != 0)
{ {
write_stderr(_("signal %d failed (PID: %ld): %s\n"), sig, pid, write_stderr(_("%s: could not send signal %d (PID: %ld): %s\n"), progname, sig, pid,
strerror(errno)); strerror(errno));
exit(1); exit(1);
} }
...@@ -828,7 +832,7 @@ pgwin32_CommandLine(bool registration) ...@@ -828,7 +832,7 @@ pgwin32_CommandLine(bool registration)
ret = find_other_exec(argv0, "postmaster", PM_VERSIONSTR, cmdLine); ret = find_other_exec(argv0, "postmaster", PM_VERSIONSTR, cmdLine);
if (ret != 0) if (ret != 0)
{ {
write_stderr(_("Unable to find exe")); write_stderr(_("%s: could not find exe"), progname);
exit(1); exit(1);
} }
...@@ -875,13 +879,13 @@ pgwin32_doRegister() ...@@ -875,13 +879,13 @@ pgwin32_doRegister()
if (hSCM == NULL) if (hSCM == NULL)
{ {
write_stderr(_("Unable to open service manager\n")); write_stderr(_("%s: could not open service manager\n"), progname);
exit(1); exit(1);
} }
if (pgwin32_IsInstalled(hSCM)) if (pgwin32_IsInstalled(hSCM))
{ {
CloseServiceHandle(hSCM); CloseServiceHandle(hSCM);
write_stderr(_("Service \"%s\" already registered\n"), register_servicename); write_stderr(_("%s: service \"%s\" already registered\n"), progname, register_servicename);
exit(1); exit(1);
} }
...@@ -892,7 +896,7 @@ pgwin32_doRegister() ...@@ -892,7 +896,7 @@ pgwin32_doRegister()
NULL, NULL, "RPCSS\0", register_username, register_password)) == NULL) NULL, NULL, "RPCSS\0", register_username, register_password)) == NULL)
{ {
CloseServiceHandle(hSCM); CloseServiceHandle(hSCM);
write_stderr(_("Unable to register service \"%s\" [%d]\n"), register_servicename, (int) GetLastError()); write_stderr(_("%s: could not register service \"%s\" [%d]\n"), progname, register_servicename, (int) GetLastError());
exit(1); exit(1);
} }
CloseServiceHandle(hService); CloseServiceHandle(hService);
...@@ -907,27 +911,27 @@ pgwin32_doUnregister() ...@@ -907,27 +911,27 @@ pgwin32_doUnregister()
if (hSCM == NULL) if (hSCM == NULL)
{ {
write_stderr(_("Unable to open service manager\n")); write_stderr(_("%s: could not open service manager\n"), progname);
exit(1); exit(1);
} }
if (!pgwin32_IsInstalled(hSCM)) if (!pgwin32_IsInstalled(hSCM))
{ {
CloseServiceHandle(hSCM); CloseServiceHandle(hSCM);
write_stderr(_("Service \"%s\" not registered\n"), register_servicename); write_stderr(_("%s: service \"%s\" not registered\n"), progname, register_servicename);
exit(1); exit(1);
} }
if ((hService = OpenService(hSCM, register_servicename, DELETE)) == NULL) if ((hService = OpenService(hSCM, register_servicename, DELETE)) == NULL)
{ {
CloseServiceHandle(hSCM); CloseServiceHandle(hSCM);
write_stderr(_("Unable to open service \"%s\" [%d]\n"), register_servicename, (int) GetLastError()); write_stderr(_("%s: could not open service \"%s\" [%d]\n"), progname, register_servicename, (int) GetLastError());
exit(1); exit(1);
} }
if (!DeleteService(hService)) if (!DeleteService(hService))
{ {
CloseServiceHandle(hService); CloseServiceHandle(hService);
CloseServiceHandle(hSCM); CloseServiceHandle(hSCM);
write_stderr(_("Unable to unregister service \"%s\" [%d]\n"), register_servicename, (int) GetLastError()); write_stderr(_("%s: could not unregister service \"%s\" [%d]\n"), progname, register_servicename, (int) GetLastError());
exit(1); exit(1);
} }
CloseServiceHandle(hService); CloseServiceHandle(hService);
...@@ -1082,8 +1086,8 @@ do_help(void) ...@@ -1082,8 +1086,8 @@ do_help(void)
printf(_(" %s status [-D DATADIR]\n"), progname); printf(_(" %s status [-D DATADIR]\n"), progname);
printf(_(" %s kill SIGNALNAME PROCESSID\n"), progname); printf(_(" %s kill SIGNALNAME PROCESSID\n"), progname);
#ifdef WIN32 #ifdef WIN32
printf(_(" %s register [-N servicename] [-U username] [-P password] [-D DATADIR] [-w] [-o \"OPTIONS\"]\n"), progname); printf(_(" %s register [-N SERVICENAME] [-U USERNAME] [-P PASSWORD] [-D DATADIR] [-w] [-o \"OPTIONS\"]\n"), progname);
printf(_(" %s unregister [-N servicename]\n"), progname); printf(_(" %s unregister [-N SERVICENAME]\n"), progname);
#endif #endif
printf(_("Common options:\n")); printf(_("Common options:\n"));
printf(_(" -D, --pgdata DATADIR location of the database storage area\n")); printf(_(" -D, --pgdata DATADIR location of the database storage area\n"));
...@@ -1106,7 +1110,7 @@ do_help(void) ...@@ -1106,7 +1110,7 @@ do_help(void)
" (PostgreSQL server executable)\n")); " (PostgreSQL server executable)\n"));
printf(_(" -p PATH-TO-POSTMASTER normally not necessary\n\n")); printf(_(" -p PATH-TO-POSTMASTER normally not necessary\n\n"));
printf(_("Options for stop or restart:\n")); printf(_("Options for stop or restart:\n"));
printf(_(" -m SHUTDOWN-MODE may be 'smart', 'fast', or 'immediate'\n\n")); printf(_(" -m SHUTDOWN-MODE may be \"smart\", \"fast\", or \"immediate\"\n\n"));
printf(_("Allowed signal names for kill:\n")); printf(_("Allowed signal names for kill:\n"));
printf(_(" HUP INT QUIT ABRT TERM USR1 USR2\n\n")); printf(_(" HUP INT QUIT ABRT TERM USR1 USR2\n\n"));
printf(_("Shutdown modes are:\n")); printf(_("Shutdown modes are:\n"));
...@@ -1138,7 +1142,7 @@ set_mode(char *modeopt) ...@@ -1138,7 +1142,7 @@ set_mode(char *modeopt)
} }
else else
{ {
write_stderr(_("%s: invalid shutdown mode %s\n"), progname, modeopt); write_stderr(_("%s: unrecognized shutdown mode \"%s\"\n"), progname, modeopt);
do_advice(); do_advice();
exit(1); exit(1);
} }
...@@ -1171,7 +1175,7 @@ set_sig(char *signame) ...@@ -1171,7 +1175,7 @@ set_sig(char *signame)
sig = SIGUSR2; sig = SIGUSR2;
else else
{ {
write_stderr(_("%s: invalid signal \"%s\"\n"), progname, signame); write_stderr(_("%s: unrecognized signal name \"%s\"\n"), progname, signame);
do_advice(); do_advice();
exit(1); exit(1);
} }
...@@ -1317,7 +1321,7 @@ main(int argc, char **argv) ...@@ -1317,7 +1321,7 @@ main(int argc, char **argv)
{ {
if (ctl_command != NO_COMMAND) if (ctl_command != NO_COMMAND)
{ {
write_stderr(_("%s: extra operation mode %s\n"), progname, argv[optind]); write_stderr(_("%s: extra operation mode \"%s\"\n"), progname, argv[optind]);
do_advice(); do_advice();
exit(1); exit(1);
} }
...@@ -1354,7 +1358,7 @@ main(int argc, char **argv) ...@@ -1354,7 +1358,7 @@ main(int argc, char **argv)
#endif #endif
else else
{ {
write_stderr(_("%s: invalid operation mode %s\n"), progname, argv[optind]); write_stderr(_("%s: unrecognized operation mode \"%s\"\n"), progname, argv[optind]);
do_advice(); do_advice();
exit(1); exit(1);
} }
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.61 2004/08/29 05:06:53 momjian Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.62 2004/10/12 21:54:44 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -341,7 +341,7 @@ main(int argc, char **argv) ...@@ -341,7 +341,7 @@ main(int argc, char **argv)
/* done, print a summary of ignored errors */ /* done, print a summary of ignored errors */
if (AH->n_errors) if (AH->n_errors)
fprintf(stderr, _("WARNING, errors ignored on restore: %d\n"), fprintf(stderr, _("WARNING: errors ignored on restore: %d\n"),
AH->n_errors); AH->n_errors);
/* AH may be freed in CloseArchive? */ /* AH may be freed in CloseArchive? */
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright (c) 2000-2004, PostgreSQL Global Development Group * Copyright (c) 2000-2004, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.107 2004/09/10 04:10:53 neilc Exp $ * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.108 2004/10/12 21:54:44 petere Exp $
*/ */
#include "postgres_fe.h" #include "postgres_fe.h"
#include "describe.h" #include "describe.h"
...@@ -114,7 +114,7 @@ describeTablespaces(const char *pattern, bool verbose) ...@@ -114,7 +114,7 @@ describeTablespaces(const char *pattern, bool verbose)
if (pset.sversion < 70500) if (pset.sversion < 70500)
{ {
fprintf(stderr, _("This server version (%d) does not support tablespaces.\n"), fprintf(stderr, _("The server version (%d) does not support tablespaces.\n"),
pset.sversion); pset.sversion);
return true; return true;
} }
...@@ -922,9 +922,9 @@ describeOneTableDetails(const char *schemaname, ...@@ -922,9 +922,9 @@ describeOneTableDetails(const char *schemaname,
int count_footers = 0; int count_footers = 0;
if (strcmp(indisprimary, "t") == 0) if (strcmp(indisprimary, "t") == 0)
printfPQExpBuffer(&tmpbuf, _("PRIMARY KEY, ")); printfPQExpBuffer(&tmpbuf, _("primary key, "));
else if (strcmp(indisunique, "t") == 0) else if (strcmp(indisunique, "t") == 0)
printfPQExpBuffer(&tmpbuf, _("UNIQUE, ")); printfPQExpBuffer(&tmpbuf, _("unique, "));
else else
resetPQExpBuffer(&tmpbuf); resetPQExpBuffer(&tmpbuf);
appendPQExpBuffer(&tmpbuf, "%s, ", indamname); appendPQExpBuffer(&tmpbuf, "%s, ", indamname);
...@@ -937,7 +937,7 @@ describeOneTableDetails(const char *schemaname, ...@@ -937,7 +937,7 @@ describeOneTableDetails(const char *schemaname,
appendPQExpBuffer(&tmpbuf, _(", predicate (%s)"), indpred); appendPQExpBuffer(&tmpbuf, _(", predicate (%s)"), indpred);
if (strcmp(indisclustered, "t") == 0) if (strcmp(indisclustered, "t") == 0)
appendPQExpBuffer(&tmpbuf, _(", CLUSTER")); appendPQExpBuffer(&tmpbuf, _(", clustered"));
footers = pg_malloc_zero(4 * sizeof(*footers)); footers = pg_malloc_zero(4 * sizeof(*footers));
footers[count_footers++] = pg_strdup(tmpbuf.data); footers[count_footers++] = pg_strdup(tmpbuf.data);
...@@ -1256,7 +1256,7 @@ describeOneTableDetails(const char *schemaname, ...@@ -1256,7 +1256,7 @@ describeOneTableDetails(const char *schemaname,
if (verbose) if (verbose)
{ {
char *s = _("Contains OIDs"); char *s = _("Has OIDs");
printfPQExpBuffer(&buf, "%s: %s", s, printfPQExpBuffer(&buf, "%s: %s", s,
(tableinfo.hasoids ? _("yes") : _("no"))); (tableinfo.hasoids ? _("yes") : _("no")));
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright (c) 2000-2004, PostgreSQL Global Development Group * Copyright (c) 2000-2004, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.94 2004/10/06 18:39:16 momjian Exp $ * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.95 2004/10/12 21:54:44 petere Exp $
*/ */
#include "postgres_fe.h" #include "postgres_fe.h"
#include "common.h" #include "common.h"
...@@ -223,11 +223,11 @@ slashUsage(unsigned short int pager) ...@@ -223,11 +223,11 @@ slashUsage(unsigned short int pager)
fprintf(output, _(" \\dn [PATTERN] list schemas (add \"+\" for more detail)\n")); fprintf(output, _(" \\dn [PATTERN] list schemas (add \"+\" for more detail)\n"));
fprintf(output, _(" \\do [NAME] list operators\n")); fprintf(output, _(" \\do [NAME] list operators\n"));
fprintf(output, _(" \\dl list large objects, same as \\lo_list\n")); fprintf(output, _(" \\dl list large objects, same as \\lo_list\n"));
fprintf(output, _(" \\dp [PATTERN] list table, view and sequence access privileges\n")); fprintf(output, _(" \\dp [PATTERN] list table, view, and sequence access privileges\n"));
fprintf(output, _(" \\dT [PATTERN] list data types (add \"+\" for more detail)\n")); fprintf(output, _(" \\dT [PATTERN] list data types (add \"+\" for more detail)\n"));
fprintf(output, _(" \\du [PATTERN] list users\n")); fprintf(output, _(" \\du [PATTERN] list users\n"));
fprintf(output, _(" \\l list all databases (add \"+\" for more detail)\n")); fprintf(output, _(" \\l list all databases (add \"+\" for more detail)\n"));
fprintf(output, _(" \\z [PATTERN] list table, view and sequence access privileges (same as \\dp)\n")); fprintf(output, _(" \\z [PATTERN] list table, view, and sequence access privileges (same as \\dp)\n"));
fprintf(output, "\n"); fprintf(output, "\n");
fprintf(output, _("Formatting\n")); fprintf(output, _("Formatting\n"));
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright (c) 2000-2004, PostgreSQL Global Development Group * Copyright (c) 2000-2004, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.40 2004/10/06 19:04:10 momjian Exp $ * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.41 2004/10/12 21:54:44 petere Exp $
*/ */
#include "postgres_fe.h" #include "postgres_fe.h"
#include "input.h" #include "input.h"
...@@ -210,7 +210,7 @@ saveHistory(char *fname) ...@@ -210,7 +210,7 @@ saveHistory(char *fname)
psql_error("could not save history to file \"%s\": %s\n", fname, strerror(errno)); psql_error("could not save history to file \"%s\": %s\n", fname, strerror(errno));
} }
#else #else
psql_error("history is not supported\n"); psql_error("history is not supported by this installation\n");
#endif #endif
return false; return false;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.16 2004/08/30 02:54:41 momjian Exp $ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.17 2004/10/12 21:54:45 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -353,7 +353,7 @@ pqParseInput3(PGconn *conn) ...@@ -353,7 +353,7 @@ pqParseInput3(PGconn *conn)
{ {
/* Trouble --- report it */ /* Trouble --- report it */
printfPQExpBuffer(&conn->errorMessage, printfPQExpBuffer(&conn->errorMessage,
libpq_gettext("Message contents do not agree with length in message type \"%c\"\n"), libpq_gettext("message contents do not agree with length in message type \"%c\"\n"),
id); id);
/* build an error result holding the error message */ /* build an error result holding the error message */
pqSaveErrorResult(conn); pqSaveErrorResult(conn);
...@@ -510,7 +510,7 @@ getAnotherTuple(PGconn *conn, int msgLength) ...@@ -510,7 +510,7 @@ getAnotherTuple(PGconn *conn, int msgLength)
{ {
/* Replace partially constructed result with an error result */ /* Replace partially constructed result with an error result */
printfPQExpBuffer(&conn->errorMessage, printfPQExpBuffer(&conn->errorMessage,
libpq_gettext("unexpected field count in D message\n")); libpq_gettext("unexpected field count in \"D\" message\n"));
pqSaveErrorResult(conn); pqSaveErrorResult(conn);
/* Discard the failed message by pretending we read it */ /* Discard the failed message by pretending we read it */
conn->inCursor = conn->inStart + 5 + msgLength; conn->inCursor = conn->inStart + 5 + msgLength;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment