mirror of
https://github.com/postgres/postgres.git
synced 2025-10-19 15:49:24 +03:00
Wording cleanup for error messages. Also change can't -> cannot.
Standard English uses "may", "can", and "might" in different ways: may - permission, "You may borrow my rake." can - ability, "I can lift that log." might - possibility, "It might rain today." Unfortunately, in conversational English, their use is often mixed, as in, "You may use this variable to do X", when in fact, "can" is a better choice. Similarly, "It may crash" is better stated, "It might crash".
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/commands/vacuum.c,v 1.343 2007/01/05 22:19:26 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/commands/vacuum.c,v 1.344 2007/02/01 19:10:26 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -905,7 +905,7 @@ vac_truncate_clog(TransactionId frozenXID)
|
||||
{
|
||||
ereport(WARNING,
|
||||
(errmsg("some databases have not been vacuumed in over 2 billion transactions"),
|
||||
errdetail("You may have already suffered transaction-wraparound data loss.")));
|
||||
errdetail("You might have already suffered transaction-wraparound data loss.")));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1407,7 +1407,7 @@ scan_heap(VRelStats *vacrelstats, Relation onerel,
|
||||
* release write lock before commit there.)
|
||||
*/
|
||||
ereport(NOTICE,
|
||||
(errmsg("relation \"%s\" TID %u/%u: InsertTransactionInProgress %u --- can't shrink relation",
|
||||
(errmsg("relation \"%s\" TID %u/%u: InsertTransactionInProgress %u --- cannot shrink relation",
|
||||
relname, blkno, offnum, HeapTupleHeaderGetXmin(tuple.t_data))));
|
||||
do_shrinking = false;
|
||||
break;
|
||||
@@ -1420,7 +1420,7 @@ scan_heap(VRelStats *vacrelstats, Relation onerel,
|
||||
* release write lock before commit there.)
|
||||
*/
|
||||
ereport(NOTICE,
|
||||
(errmsg("relation \"%s\" TID %u/%u: DeleteTransactionInProgress %u --- can't shrink relation",
|
||||
(errmsg("relation \"%s\" TID %u/%u: DeleteTransactionInProgress %u --- cannot shrink relation",
|
||||
relname, blkno, offnum, HeapTupleHeaderGetXmax(tuple.t_data))));
|
||||
do_shrinking = false;
|
||||
break;
|
||||
@@ -1900,7 +1900,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel,
|
||||
/* Quick exit if we have no vtlinks to search in */
|
||||
if (vacrelstats->vtlinks == NULL)
|
||||
{
|
||||
elog(DEBUG2, "parent item in update-chain not found --- can't continue repair_frag");
|
||||
elog(DEBUG2, "parent item in update-chain not found --- cannot continue repair_frag");
|
||||
break; /* out of walk-along-page loop */
|
||||
}
|
||||
|
||||
@@ -2040,7 +2040,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel,
|
||||
if (vtlp == NULL)
|
||||
{
|
||||
/* see discussion above */
|
||||
elog(DEBUG2, "parent item in update-chain not found --- can't continue repair_frag");
|
||||
elog(DEBUG2, "parent item in update-chain not found --- cannot continue repair_frag");
|
||||
chain_move_failed = true;
|
||||
break; /* out of check-all-items loop */
|
||||
}
|
||||
@@ -2075,7 +2075,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel,
|
||||
HeapTupleHeaderGetXmin(tp.t_data))))
|
||||
{
|
||||
ReleaseBuffer(Pbuf);
|
||||
elog(DEBUG2, "too old parent tuple found --- can't continue repair_frag");
|
||||
elog(DEBUG2, "too old parent tuple found --- cannot continue repair_frag");
|
||||
chain_move_failed = true;
|
||||
break; /* out of check-all-items loop */
|
||||
}
|
||||
|
Reference in New Issue
Block a user