diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2006-10-06 17:14:01 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2006-10-06 17:14:01 +0000 |
| commit | b9b4f10b5b20525d3ee0fec4dc4c8c19bf3a71de (patch) | |
| tree | 9729e2d418e7173814b89300536a6ec8a4a5e63a /src/backend | |
| parent | 378c79dc78346ca8b54719ae33f99dc16152e2db (diff) | |
| download | postgresql-b9b4f10b5b20525d3ee0fec4dc4c8c19bf3a71de.tar.gz | |
Message style improvements
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/access/gin/ginarrayproc.c | 4 | ||||
| -rw-r--r-- | src/backend/access/gin/ginscan.c | 4 | ||||
| -rw-r--r-- | src/backend/access/transam/twophase.c | 50 | ||||
| -rw-r--r-- | src/backend/access/transam/xlog.c | 6 | ||||
| -rw-r--r-- | src/backend/commands/copy.c | 6 | ||||
| -rw-r--r-- | src/backend/commands/define.c | 4 | ||||
| -rw-r--r-- | src/backend/commands/functioncmds.c | 4 | ||||
| -rw-r--r-- | src/backend/commands/sequence.c | 6 | ||||
| -rw-r--r-- | src/backend/commands/tablecmds.c | 8 | ||||
| -rw-r--r-- | src/backend/executor/execQual.c | 4 | ||||
| -rw-r--r-- | src/backend/libpq/auth.c | 5 | ||||
| -rw-r--r-- | src/backend/libpq/be-secure.c | 10 | ||||
| -rw-r--r-- | src/backend/postmaster/bgwriter.c | 4 | ||||
| -rw-r--r-- | src/backend/rewrite/rewriteHandler.c | 8 | ||||
| -rw-r--r-- | src/backend/utils/adt/acl.c | 6 | ||||
| -rw-r--r-- | src/backend/utils/adt/arrayfuncs.c | 6 | ||||
| -rw-r--r-- | src/backend/utils/fmgr/dfmgr.c | 4 | ||||
| -rw-r--r-- | src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c | 4 | ||||
| -rw-r--r-- | src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c | 4 | ||||
| -rw-r--r-- | src/backend/utils/misc/guc.c | 8 | ||||
| -rw-r--r-- | src/backend/utils/misc/tzparser.c | 4 |
21 files changed, 80 insertions, 79 deletions
diff --git a/src/backend/access/gin/ginarrayproc.c b/src/backend/access/gin/ginarrayproc.c index 33a8b44a14..3c3b8f53f4 100644 --- a/src/backend/access/gin/ginarrayproc.c +++ b/src/backend/access/gin/ginarrayproc.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/gin/ginarrayproc.c,v 1.6 2006/10/04 00:29:47 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/gin/ginarrayproc.c,v 1.7 2006/10/06 17:13:58 petere Exp $ *------------------------------------------------------------------------- */ #include "postgres.h" @@ -27,7 +27,7 @@ if ( ARR_HASNULL(x) ) \ ereport(ERROR, \ (errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED), \ - errmsg("array must not contain nulls"))); \ + errmsg("array must not contain null values"))); \ } while(0) diff --git a/src/backend/access/gin/ginscan.c b/src/backend/access/gin/ginscan.c index b69f409e1c..96bf532653 100644 --- a/src/backend/access/gin/ginscan.c +++ b/src/backend/access/gin/ginscan.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/gin/ginscan.c,v 1.6 2006/10/04 00:29:48 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/gin/ginscan.c,v 1.7 2006/10/06 17:13:58 petere Exp $ *------------------------------------------------------------------------- */ @@ -176,7 +176,7 @@ newScanKey(IndexScanDesc scan) if (so->nkeys == 0) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("GIN index doesn't support search with void query"))); + errmsg("GIN index does not support search with void query"))); pgstat_count_index_scan(&scan->xs_pgstat_info); } diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c index bd0b9b131e..608172dbd3 100644 --- a/src/backend/access/transam/twophase.c +++ b/src/backend/access/transam/twophase.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.24 2006/10/04 00:29:49 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.25 2006/10/06 17:13:58 petere Exp $ * * NOTES * Each global transaction is associated with a global transaction @@ -866,7 +866,7 @@ EndPrepare(GlobalTransaction gxact) if (fd < 0) ereport(ERROR, (errcode_for_file_access(), - errmsg("could not create twophase state file \"%s\": %m", + errmsg("could not create two-phase state file \"%s\": %m", path))); /* Write data to file, and calculate CRC as we pass over it */ @@ -880,7 +880,7 @@ EndPrepare(GlobalTransaction gxact) close(fd); ereport(ERROR, (errcode_for_file_access(), - errmsg("could not write twophase state file: %m"))); + errmsg("could not write two-phase state file: %m"))); } } @@ -897,7 +897,7 @@ EndPrepare(GlobalTransaction gxact) close(fd); ereport(ERROR, (errcode_for_file_access(), - errmsg("could not write twophase state file: %m"))); + errmsg("could not write two-phase state file: %m"))); } /* Back up to prepare for rewriting the CRC */ @@ -906,7 +906,7 @@ EndPrepare(GlobalTransaction gxact) close(fd); ereport(ERROR, (errcode_for_file_access(), - errmsg("could not seek in twophase state file: %m"))); + errmsg("could not seek in two-phase state file: %m"))); } /* @@ -946,13 +946,13 @@ EndPrepare(GlobalTransaction gxact) close(fd); ereport(ERROR, (errcode_for_file_access(), - errmsg("could not write twophase state file: %m"))); + errmsg("could not write two-phase state file: %m"))); } if (close(fd) != 0) ereport(ERROR, (errcode_for_file_access(), - errmsg("could not close twophase state file: %m"))); + errmsg("could not close two-phase state file: %m"))); /* * Mark the prepared transaction as valid. As soon as xact.c marks MyProc @@ -1022,7 +1022,7 @@ ReadTwoPhaseFile(TransactionId xid) { ereport(WARNING, (errcode_for_file_access(), - errmsg("could not open twophase state file \"%s\": %m", + errmsg("could not open two-phase state file \"%s\": %m", path))); return NULL; } @@ -1036,7 +1036,7 @@ ReadTwoPhaseFile(TransactionId xid) close(fd); ereport(WARNING, (errcode_for_file_access(), - errmsg("could not stat twophase state file \"%s\": %m", + errmsg("could not stat two-phase state file \"%s\": %m", path))); return NULL; } @@ -1067,7 +1067,7 @@ ReadTwoPhaseFile(TransactionId xid) close(fd); ereport(WARNING, (errcode_for_file_access(), - errmsg("could not read twophase state file \"%s\": %m", + errmsg("could not read two-phase state file \"%s\": %m", path))); pfree(buf); return NULL; @@ -1128,7 +1128,7 @@ FinishPreparedTransaction(const char *gid, bool isCommit) if (buf == NULL) ereport(ERROR, (errcode(ERRCODE_DATA_CORRUPTED), - errmsg("twophase state file for transaction %u is corrupt", + errmsg("two-phase state file for transaction %u is corrupt", xid))); /* @@ -1250,7 +1250,7 @@ RemoveTwoPhaseFile(TransactionId xid, bool giveWarning) if (errno != ENOENT || giveWarning) ereport(WARNING, (errcode_for_file_access(), - errmsg("could not remove twophase state file \"%s\": %m", + errmsg("could not remove two-phase state file \"%s\": %m", path))); } @@ -1279,7 +1279,7 @@ RecreateTwoPhaseFile(TransactionId xid, void *content, int len) if (fd < 0) ereport(ERROR, (errcode_for_file_access(), - errmsg("could not recreate twophase state file \"%s\": %m", + errmsg("could not recreate two-phase state file \"%s\": %m", path))); /* Write content and CRC */ @@ -1288,14 +1288,14 @@ RecreateTwoPhaseFile(TransactionId xid, void *content, int len) close(fd); ereport(ERROR, (errcode_for_file_access(), - errmsg("could not write twophase state file: %m"))); + errmsg("could not write two-phase state file: %m"))); } if (write(fd, &statefile_crc, sizeof(pg_crc32)) != sizeof(pg_crc32)) { close(fd); ereport(ERROR, (errcode_for_file_access(), - errmsg("could not write twophase state file: %m"))); + errmsg("could not write two-phase state file: %m"))); } /* @@ -1307,13 +1307,13 @@ RecreateTwoPhaseFile(TransactionId xid, void *content, int len) close(fd); ereport(ERROR, (errcode_for_file_access(), - errmsg("could not fsync twophase state file: %m"))); + errmsg("could not fsync two-phase state file: %m"))); } if (close(fd) != 0) ereport(ERROR, (errcode_for_file_access(), - errmsg("could not close twophase state file: %m"))); + errmsg("could not close two-phase state file: %m"))); } /* @@ -1390,7 +1390,7 @@ CheckPointTwoPhase(XLogRecPtr redo_horizon) } ereport(ERROR, (errcode_for_file_access(), - errmsg("could not open twophase state file \"%s\": %m", + errmsg("could not open two-phase state file \"%s\": %m", path))); } @@ -1399,14 +1399,14 @@ CheckPointTwoPhase(XLogRecPtr redo_horizon) close(fd); ereport(ERROR, (errcode_for_file_access(), - errmsg("could not fsync twophase state file \"%s\": %m", + errmsg("could not fsync two-phase state file \"%s\": %m", path))); } if (close(fd) != 0) ereport(ERROR, (errcode_for_file_access(), - errmsg("could not close twophase state file \"%s\": %m", + errmsg("could not close two-phase state file \"%s\": %m", path))); } @@ -1462,7 +1462,7 @@ PrescanPreparedTransactions(void) if (TransactionIdFollowsOrEquals(xid, origNextXid)) { ereport(WARNING, - (errmsg("removing future twophase state file \"%s\"", + (errmsg("removing future two-phase state file \"%s\"", clde->d_name))); RemoveTwoPhaseFile(xid, true); continue; @@ -1478,7 +1478,7 @@ PrescanPreparedTransactions(void) if (buf == NULL) { ereport(WARNING, - (errmsg("removing corrupt twophase state file \"%s\"", + (errmsg("removing corrupt two-phase state file \"%s\"", clde->d_name))); RemoveTwoPhaseFile(xid, true); continue; @@ -1489,7 +1489,7 @@ PrescanPreparedTransactions(void) if (!TransactionIdEquals(hdr->xid, xid)) { ereport(WARNING, - (errmsg("removing corrupt twophase state file \"%s\"", + (errmsg("removing corrupt two-phase state file \"%s\"", clde->d_name))); RemoveTwoPhaseFile(xid, true); pfree(buf); @@ -1566,7 +1566,7 @@ RecoverPreparedTransactions(void) if (TransactionIdDidCommit(xid) || TransactionIdDidAbort(xid)) { ereport(WARNING, - (errmsg("removing stale twophase state file \"%s\"", + (errmsg("removing stale two-phase state file \"%s\"", clde->d_name))); RemoveTwoPhaseFile(xid, true); continue; @@ -1577,7 +1577,7 @@ RecoverPreparedTransactions(void) if (buf == NULL) { ereport(WARNING, - (errmsg("removing corrupt twophase state file \"%s\"", + (errmsg("removing corrupt two-phase state file \"%s\"", clde->d_name))); RemoveTwoPhaseFile(xid, true); continue; diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 7b5780b66d..b0556034ae 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.250 2006/10/04 00:29:49 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.251 2006/10/06 17:13:58 petere Exp $ * *------------------------------------------------------------------------- */ @@ -6421,7 +6421,7 @@ pg_switch_xlog(PG_FUNCTION_ARGS) if (!superuser()) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - (errmsg("must be superuser to switch xlog files")))); + (errmsg("must be superuser to switch transaction log files")))); switchpoint = RequestXLogSwitch(); @@ -6529,7 +6529,7 @@ pg_xlogfile_name_offset(PG_FUNCTION_ARGS) if (sscanf(locationstr, "%X/%X", &uxlogid, &uxrecoff) != 2) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("could not parse xlog location \"%s\"", + errmsg("could not parse transaction log location \"%s\"", locationstr))); locationpoint.xlogid = uxlogid; diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 0cbfc237ff..41266fb0ef 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.272 2006/10/04 00:29:50 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.273 2006/10/06 17:13:58 petere Exp $ * *------------------------------------------------------------------------- */ @@ -872,7 +872,7 @@ DoCopy(const CopyStmt *stmt) strchr(cstate->null_print, '\n') != NULL) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("COPY null cannot use newline or carriage return"))); + errmsg("COPY null representation cannot use newline or carriage return"))); /* Disallow backslash in non-CSV mode */ if (!cstate->csv_mode && strchr(cstate->delim, '\\') != NULL) @@ -1549,7 +1549,7 @@ copy_in_error_callback(void *arg) else if (cstate->cur_attname) { /* error is relevant to a particular column, value is NULL */ - errcontext("COPY %s, line %d, column %s: NULL input", + errcontext("COPY %s, line %d, column %s: null input", cstate->cur_relname, cstate->cur_lineno, cstate->cur_attname); } diff --git a/src/backend/commands/define.c b/src/backend/commands/define.c index 697678c4aa..cfbdec280f 100644 --- a/src/backend/commands/define.c +++ b/src/backend/commands/define.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/define.c,v 1.98 2006/10/04 00:29:51 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/define.c,v 1.99 2006/10/06 17:13:58 petere Exp $ * * DESCRIPTION * The "DefineFoo" routines take the parse tree and pick out the @@ -163,7 +163,7 @@ defGetBoolean(DefElem *def) } ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - errmsg("%s requires a boolean value", + errmsg("%s requires a Boolean value", def->defname))); return false; /* keep compiler quiet */ } diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c index 29954a27a8..cd71256412 100644 --- a/src/backend/commands/functioncmds.c +++ b/src/backend/commands/functioncmds.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/functioncmds.c,v 1.79 2006/10/04 00:29:51 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/functioncmds.c,v 1.80 2006/10/06 17:13:58 petere Exp $ * * DESCRIPTION * These routines take the parse tree and pick out the @@ -1402,7 +1402,7 @@ DropCast(DropCastStmt *stmt) TypeNameToString(stmt->targettype)))); else ereport(NOTICE, - (errmsg("cast from type %s to type %s does not exist ... skipping", + (errmsg("cast from type %s to type %s does not exist, skipping", TypeNameToString(stmt->sourcetype), TypeNameToString(stmt->targettype)))); diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c index 9d769cb052..b73069cf1b 100644 --- a/src/backend/commands/sequence.c +++ b/src/backend/commands/sequence.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/sequence.c,v 1.140 2006/10/04 00:29:51 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/sequence.c,v 1.141 2006/10/06 17:13:58 petere Exp $ * *------------------------------------------------------------------------- */ @@ -1209,11 +1209,11 @@ process_owned_by(Relation seqrel, List *owned_by) if (seqrel->rd_rel->relowner != tablerel->rd_rel->relowner) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), - errmsg("sequence must have same owner as table it is owned by"))); + errmsg("sequence must have same owner as table it is linked to"))); if (RelationGetNamespace(seqrel) != RelationGetNamespace(tablerel)) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), - errmsg("sequence must be in same schema as table it is owned by"))); + errmsg("sequence must be in same schema as table it is linked to"))); /* Now, fetch the attribute number from the system cache */ attnum = get_attnum(RelationGetRelid(tablerel), attrname); diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 04c2a03aa8..9ad11b6f32 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.203 2006/10/04 00:29:51 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.204 2006/10/06 17:13:59 petere Exp $ * *------------------------------------------------------------------------- */ @@ -6232,7 +6232,7 @@ MergeAttributesIntoExisting(Relation child_rel, Relation parent_rel) if (attribute->attnotnull && !childatt->attnotnull) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), - errmsg("column \"%s\" in child table must be NOT NULL", + errmsg("column \"%s\" in child table must be marked NOT NULL", NameStr(attribute->attname)))); childatt->attinhcount++; @@ -6254,7 +6254,7 @@ MergeAttributesIntoExisting(Relation child_rel, Relation parent_rel) */ ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), - errmsg("child table missing column \"%s\"", + errmsg("child table is missing column \"%s\"", NameStr(attribute->attname)))); } @@ -6356,7 +6356,7 @@ MergeConstraintsIntoExisting(Relation child_rel, Relation parent_rel) decompile_conbin(child_contuple, tupleDesc))) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), - errmsg("constraint definition for CHECK constraint \"%s\" doesn't match", + errmsg("constraint definition for check constraint \"%s\" does not match", NameStr(parent_con->conname)))); /* diff --git a/src/backend/executor/execQual.c b/src/backend/executor/execQual.c index 3f9c090725..943ae62d3d 100644 --- a/src/backend/executor/execQual.c +++ b/src/backend/executor/execQual.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.195 2006/10/04 00:29:52 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.196 2006/10/06 17:13:59 petere Exp $ * *------------------------------------------------------------------------- */ @@ -274,7 +274,7 @@ ExecEvalArrayRef(ArrayRefExprState *astate, if (isAssignment) ereport(ERROR, (errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED), - errmsg("array subscript in assignment must not be NULL"))); + errmsg("array subscript in assignment must not be null"))); *isNull = true; return (Datum) NULL; } diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 6e3ef149f3..436f8fb605 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.144 2006/10/04 00:29:53 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.145 2006/10/06 17:13:59 petere Exp $ * *------------------------------------------------------------------------- */ @@ -835,7 +835,8 @@ CheckLDAPAuth(Port *port) if (_ldap_start_tls_sA == NULL) { ereport(LOG, - (errmsg("could not load function _ldap_start_tls_sA in wldap32.dll. LDAP over SSL is not supported on this platform."))); + (errmsg("could not load function _ldap_start_tls_sA in wldap32.dll"), + errdetail("LDAP over SSL is not supported on this platform."))); return STATUS_ERROR; } diff --git a/src/backend/libpq/be-secure.c b/src/backend/libpq/be-secure.c index 06a5b9a6c0..6812e52500 100644 --- a/src/backend/libpq/be-secure.c +++ b/src/backend/libpq/be-secure.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.73 2006/10/04 00:29:53 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.74 2006/10/06 17:13:59 petere Exp $ * * Since the server static private key ($DataDir/server.key) * will normally be stored unencrypted so that the database @@ -811,17 +811,17 @@ initialize_SSL(void) X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL); #else ereport(LOG, - (errmsg("SSL Certificate Revocation List (CRL) file \"%s\" ignored", + (errmsg("SSL certificate revocation list file \"%s\" ignored", ROOT_CRL_FILE), - errdetail("Installed SSL library does not support CRL."))); + errdetail("SSL library does not support certificate revocation lists."))); #endif else { /* Not fatal - we do not require CRL */ ereport(LOG, - (errmsg("SSL Certificate Revocation List (CRL) file \"%s\" not found, skipping: %s", + (errmsg("SSL certificate revocation list file \"%s\" not found, skipping: %s", ROOT_CRL_FILE, SSLerrmessage()), - errdetail("Will not check certificates against CRL."))); + errdetail("Certificates will not be checked against revocation list."))); } } diff --git a/src/backend/postmaster/bgwriter.c b/src/backend/postmaster/bgwriter.c index 69a6734bc5..e3a4925b91 100644 --- a/src/backend/postmaster/bgwriter.c +++ b/src/backend/postmaster/bgwriter.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.28 2006/10/04 00:29:56 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.29 2006/10/06 17:13:59 petere Exp $ * *------------------------------------------------------------------------- */ @@ -437,7 +437,7 @@ BackgroundWriterMain(void) */ if ((switchpoint.xrecoff % XLogSegSize) != 0) ereport(DEBUG1, - (errmsg("xlog switch forced (archive_timeout=%d)", + (errmsg("transaction log switch forced (archive_timeout=%d)", XLogArchiveTimeout))); /* diff --git a/src/backend/rewrite/rewriteHandler.c b/src/backend/rewrite/rewriteHandler.c index 81af9eebad..35e929d42f 100644 --- a/src/backend/rewrite/rewriteHandler.c +++ b/src/backend/rewrite/rewriteHandler.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/rewrite/rewriteHandler.c,v 1.167 2006/10/04 00:29:56 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/rewrite/rewriteHandler.c,v 1.168 2006/10/06 17:13:59 petere Exp $ * *------------------------------------------------------------------------- */ @@ -1653,21 +1653,21 @@ RewriteQuery(Query *parsetree, List *rewrite_events) case CMD_INSERT: ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("cannot INSERT RETURNING on relation \"%s\"", + errmsg("cannot perform INSERT RETURNING on relation \"%s\"", RelationGetRelationName(rt_entry_relation)), errhint("You need an unconditional ON INSERT DO INSTEAD rule with a RETURNING clause."))); break; case CMD_UPDATE: ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("cannot UPDATE RETURNING on relation \"%s\"", + errmsg("cannot perform UPDATE RETURNING on relation \"%s\"", RelationGetRelationName(rt_entry_relation)), errhint("You need an unconditional ON UPDATE DO INSTEAD rule with a RETURNING clause."))); break; case CMD_DELETE: ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("cannot DELETE RETURNING on relation \"%s\"", + errmsg("cannot perform DELETE RETURNING on relation \"%s\"", RelationGetRelationName(rt_entry_relation)), errhint("You need an unconditional ON DELETE DO INSTEAD rule with a RETURNING clause."))); break; diff --git a/src/backend/utils/adt/acl.c b/src/backend/utils/adt/acl.c index 509c6dea92..9a475ed706 100644 --- a/src/backend/utils/adt/acl.c +++ b/src/backend/utils/adt/acl.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.135 2006/09/05 21:08:36 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.136 2006/10/06 17:13:59 petere Exp $ * *------------------------------------------------------------------------- */ @@ -371,7 +371,7 @@ check_acl(const Acl *acl) if (ARR_ELEMTYPE(acl) != ACLITEMOID) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("ACL array contains wrong datatype"))); + errmsg("ACL array contains wrong data type"))); if (ARR_NDIM(acl) != 1) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), @@ -379,7 +379,7 @@ check_acl(const Acl *acl) if (ARR_HASNULL(acl)) ereport(ERROR, (errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED), - errmsg("ACL arrays must not contain nulls"))); + errmsg("ACL arrays must not contain null values"))); } /* diff --git a/src/backend/utils/adt/arrayfuncs.c b/src/backend/utils/adt/arrayfuncs.c index a29d31bd6e..b510d42bb9 100644 --- a/src/backend/utils/adt/arrayfuncs.c +++ b/src/backend/utils/adt/arrayfuncs.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.133 2006/10/04 00:29:58 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.134 2006/10/06 17:13:59 petere Exp $ * *------------------------------------------------------------------------- */ @@ -1984,7 +1984,7 @@ array_set(ArrayType *array, if (isNull) ereport(ERROR, (errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED), - errmsg("cannot assign NULL to an element of a fixed-length array"))); + errmsg("cannot assign null value to an element of a fixed-length array"))); newarray = (ArrayType *) palloc(arraytyplen); memcpy(newarray, array, arraytyplen); @@ -2944,7 +2944,7 @@ deconstruct_array(ArrayType *array, else ereport(ERROR, (errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED), - errmsg("NULL array element not allowed in this context"))); + errmsg("null array element not allowed in this context"))); } else { diff --git a/src/backend/utils/fmgr/dfmgr.c b/src/backend/utils/fmgr/dfmgr.c index c3710c6211..ceefe44497 100644 --- a/src/backend/utils/fmgr/dfmgr.c +++ b/src/backend/utils/fmgr/dfmgr.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.91 2006/10/04 00:30:01 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.92 2006/10/06 17:13:59 petere Exp $ * *------------------------------------------------------------------------- */ @@ -285,7 +285,7 @@ internal_load_library(const char *libname) ereport(ERROR, (errmsg("incompatible library \"%s\": missing magic block", libname), - errhint("Extension libraries are now required to use the PG_MODULE_MAGIC macro."))); + errhint("Extension libraries are required to use the PG_MODULE_MAGIC macro."))); } /* diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c index 668758e746..8851f58c42 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c,v 1.22 2006/10/04 00:30:02 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c,v 1.23 2006/10/06 17:13:59 petere Exp $ * *------------------------------------------------------------------------- */ @@ -134,7 +134,7 @@ iso8859_to_utf8(PG_FUNCTION_ARGS) ereport(ERROR, (errcode(ERRCODE_INTERNAL_ERROR), - errmsg("unexpected encoding id %d for ISO-8859 charsets", encoding))); + errmsg("unexpected encoding ID %d for ISO 8859 character sets", encoding))); PG_RETURN_VOID(); } diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c b/src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c index 559367701b..df027b99d7 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c,v 1.6 2006/10/04 00:30:03 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c,v 1.7 2006/10/06 17:14:00 petere Exp $ * *------------------------------------------------------------------------- */ @@ -124,7 +124,7 @@ win_to_utf8(PG_FUNCTION_ARGS) ereport(ERROR, (errcode(ERRCODE_INTERNAL_ERROR), - errmsg("unexpected encoding id %d for WIN charsets", encoding))); + errmsg("unexpected encoding ID %d for WIN character sets", encoding))); PG_RETURN_VOID(); } diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 74092a8f78..96244ec91f 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -10,7 +10,7 @@ * Written by Peter Eisentraut <peter_e@gmx.net>. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.354 2006/10/04 00:30:03 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.355 2006/10/06 17:14:00 petere Exp $ * *-------------------------------------------------------------------- */ @@ -894,7 +894,7 @@ static struct config_bool ConfigureNamesBool[] = {"array_nulls", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS, gettext_noop("Enable input of NULL elements in arrays."), gettext_noop("When turned on, unquoted NULL in an array input " - "value means a NULL value; " + "value means a null value; " "otherwise it is taken literally.") }, &Array_nulls, @@ -1611,7 +1611,7 @@ static struct config_int ConfigureNamesInt[] = { {"gin_fuzzy_search_limit", PGC_USERSET, UNGROUPED, - gettext_noop("Sets the maximum allowed result for exact search by gin."), + gettext_noop("Sets the maximum allowed result for exact search by GIN."), NULL, 0 }, @@ -2133,7 +2133,7 @@ static struct config_string ConfigureNamesString[] = }, { {"timezone_abbreviations", PGC_USERSET, CLIENT_CONN_LOCALE, - gettext_noop("Selects a file of timezone abbreviations"), + gettext_noop("Selects a file of time zone abbreviations"), NULL, }, &timezone_abbreviations_string, diff --git a/src/backend/utils/misc/tzparser.c b/src/backend/utils/misc/tzparser.c index 1eff2e401b..663c68f3ad 100644 --- a/src/backend/utils/misc/tzparser.c +++ b/src/backend/utils/misc/tzparser.c @@ -13,7 +13,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/misc/tzparser.c,v 1.2 2006/10/04 00:30:04 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/tzparser.c,v 1.3 2006/10/06 17:14:00 petere Exp $ * *------------------------------------------------------------------------- */ @@ -233,7 +233,7 @@ addToArray(tzEntry **base, int *arraysize, int n, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("time zone abbreviation \"%s\" is multiply defined", entry->abbrev), - errdetail("Time zone file \"%s\", line %d conflicts with file \"%s\", line %d.", + errdetail("Entry in time zone file \"%s\", line %d, conflicts with entry in file \"%s\", line %d.", midptr->filename, midptr->lineno, entry->filename, entry->lineno))); return -1; |
