diff options
| author | Peter Eisentraut | 2003-09-25 06:58:07 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2003-09-25 06:58:07 +0000 |
| commit | feb4f44d296b88b7f0723f4a4f3945a371276e0b (patch) | |
| tree | 6acfa253cd3896fa96124fdcefdbc8e5cb5bb0da /src/backend/access/common | |
| parent | 42013caf648ad4bd64b130efda760cdb1620e953 (diff) | |
Message editing: remove gratuitous variations in message wording, standardize
terms, add some clarifications, fix some untranslatable attempts at dynamic
message building.
Diffstat (limited to 'src/backend/access/common')
| -rw-r--r-- | src/backend/access/common/heaptuple.c | 4 | ||||
| -rw-r--r-- | src/backend/access/common/indextuple.c | 6 | ||||
| -rw-r--r-- | src/backend/access/common/tupdesc.c | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/access/common/heaptuple.c b/src/backend/access/common/heaptuple.c index ae2fd2e15b4..dad99b0059d 100644 --- a/src/backend/access/common/heaptuple.c +++ b/src/backend/access/common/heaptuple.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.86 2003/08/04 02:39:56 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.87 2003/09/25 06:57:56 petere Exp $ * * NOTES * The old interface functions have been converted to macros @@ -581,7 +581,7 @@ heap_formtuple(TupleDesc tupleDescriptor, if (numberOfAttributes > MaxTupleAttributeNumber) ereport(ERROR, (errcode(ERRCODE_TOO_MANY_COLUMNS), - errmsg("number of attributes %d exceeds limit, %d", + errmsg("number of columns (%d) exceeds limit (%d)", numberOfAttributes, MaxTupleAttributeNumber))); for (i = 0; i < numberOfAttributes; i++) diff --git a/src/backend/access/common/indextuple.c b/src/backend/access/common/indextuple.c index 9c51ea33dc3..3f7a2ae22ec 100644 --- a/src/backend/access/common/indextuple.c +++ b/src/backend/access/common/indextuple.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.67 2003/08/04 02:39:56 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.68 2003/09/25 06:57:56 petere Exp $ * *------------------------------------------------------------------------- */ @@ -54,7 +54,7 @@ index_formtuple(TupleDesc tupleDescriptor, if (numberOfAttributes > INDEX_MAX_KEYS) ereport(ERROR, (errcode(ERRCODE_TOO_MANY_COLUMNS), - errmsg("number of index attributes %d exceeds limit, %d", + errmsg("number of index columns (%d) exceeds limit (%d)", numberOfAttributes, INDEX_MAX_KEYS))); #ifdef TOAST_INDEX_HACK @@ -162,7 +162,7 @@ index_formtuple(TupleDesc tupleDescriptor, if ((size & INDEX_SIZE_MASK) != size) ereport(ERROR, (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), - errmsg("index tuple requires %lu bytes, maximum size is %lu", + errmsg("index row requires %lu bytes, maximum size is %lu", (unsigned long) size, (unsigned long) INDEX_SIZE_MASK))); diff --git a/src/backend/access/common/tupdesc.c b/src/backend/access/common/tupdesc.c index 9a40c08ca92..180cdcb359c 100644 --- a/src/backend/access/common/tupdesc.c +++ b/src/backend/access/common/tupdesc.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.99 2003/08/11 23:04:49 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.100 2003/09/25 06:57:56 petere Exp $ * * NOTES * some of the executor utility code such as "ExecTypeFromTL" should be @@ -657,7 +657,7 @@ TypeGetTupleDesc(Oid typeoid, List *colaliases) if (length(colaliases) != natts) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), - errmsg("number of aliases does not match number of attributes"))); + errmsg("number of aliases does not match number of columns"))); /* OK, use the aliases instead */ for (varattno = 0; varattno < natts; varattno++) @@ -684,7 +684,7 @@ TypeGetTupleDesc(Oid typeoid, List *colaliases) if (length(colaliases) != 1) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), - errmsg("number of aliases does not match number of attributes"))); + errmsg("number of aliases does not match number of columns"))); /* OK, get the column alias */ attname = strVal(lfirst(colaliases)); @@ -701,7 +701,7 @@ TypeGetTupleDesc(Oid typeoid, List *colaliases) else if (functyptype == 'p' && typeoid == RECORDOID) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), - errmsg("could not determine tuple description for function returning record"))); + errmsg("could not determine row description for function returning record"))); else { /* crummy error message, but parser should have caught this */ |
