@@ -807,21 +807,21 @@ heap_vacuum_rel(Relation rel, VacuumParams *params,
807807
808808if (vacrel -> do_index_vacuuming )
809809{
810- msgfmt = _ (" %u pages from table (%.2f%% of total) had %lld dead item identifiers removed\n" );
810+ msgfmt = _ ("%u pages from table (%.2f%% of total) had %lld dead item identifiers removed\n" );
811811
812812if (vacrel -> nindexes == 0 || vacrel -> num_index_scans == 0 )
813- appendStringInfoString (& buf ,_ ("index scan not needed:" ));
813+ appendStringInfoString (& buf ,_ ("index scan not needed: " ));
814814else
815- appendStringInfoString (& buf ,_ ("index scan needed:" ));
815+ appendStringInfoString (& buf ,_ ("index scan needed: " ));
816816}
817817else
818818{
819- msgfmt = _ (" %u pages from table (%.2f%% of total) have %lld dead item identifiers\n" );
819+ msgfmt = _ ("%u pages from table (%.2f%% of total) have %lld dead item identifiers\n" );
820820
821821if (!vacrel -> failsafe_active )
822- appendStringInfoString (& buf ,_ ("index scan bypassed:" ));
822+ appendStringInfoString (& buf ,_ ("index scan bypassed: " ));
823823else
824- appendStringInfoString (& buf ,_ ("index scan bypassed by failsafe:" ));
824+ appendStringInfoString (& buf ,_ ("index scan bypassed by failsafe: " ));
825825}
826826orig_rel_pages = vacrel -> rel_pages + vacrel -> pages_removed ;
827827appendStringInfo (& buf ,msgfmt ,
@@ -848,12 +848,14 @@ heap_vacuum_rel(Relation rel, VacuumParams *params,
848848read_rate ,write_rate );
849849if (track_io_timing )
850850{
851- appendStringInfoString (& buf ,_ ("I/OTimings :" ));
851+ appendStringInfoString (& buf ,_ ("I/Otimings :" ));
852852if (pgStatBlockReadTime - startreadtime > 0 )
853- appendStringInfo (& buf ,_ (" read= %.3f" ),
853+ appendStringInfo (& buf ,_ (" read: %.3f ms " ),
854854 (double ) (pgStatBlockReadTime - startreadtime ) /1000 );
855+ if ((pgStatBlockReadTime - startreadtime > 0 )&& (pgStatBlockWriteTime - startwritetime > 0 ))
856+ appendStringInfoString (& buf ,_ ("," ));
855857if (pgStatBlockWriteTime - startwritetime > 0 )
856- appendStringInfo (& buf ,_ (" write= %.3f" ),
858+ appendStringInfo (& buf ,_ (" write: %.3f ms " ),
857859 (double ) (pgStatBlockWriteTime - startwritetime ) /1000 );
858860appendStringInfoChar (& buf ,'\n' );
859861}
@@ -1650,7 +1652,7 @@ lazy_scan_heap(LVRelState *vacrel, VacuumParams *params, bool aggressive)
16501652 */
16511653if (vacrel -> nindexes == 0 && vacrel -> lpdead_item_pages > 0 )
16521654ereport (elevel ,
1653- (errmsg ("\"%s\": removed %lld dead item identifiers in %u pages" ,
1655+ (errmsg ("table \"%s\": removed %lld dead item identifiers in %u pages" ,
16541656vacrel -> relname , (long long )vacrel -> lpdead_items ,
16551657vacrel -> lpdead_item_pages )));
16561658
@@ -1673,7 +1675,7 @@ lazy_scan_heap(LVRelState *vacrel, VacuumParams *params, bool aggressive)
16731675appendStringInfo (& buf ,_ ("%s." ),pg_rusage_show (& ru0 ));
16741676
16751677ereport (elevel ,
1676- (errmsg ("\"%s\": found %lld removable, %lld nonremovable row versions in %u out of %u pages" ,
1678+ (errmsg ("table \"%s\": found %lld removable, %lld nonremovable row versions in %u out of %u pages" ,
16771679vacrel -> relname ,
16781680(long long )vacrel -> tuples_deleted ,
16791681(long long )vacrel -> num_tuples ,vacrel -> scanned_pages ,
@@ -2177,7 +2179,7 @@ lazy_vacuum(LVRelState *vacrel)
21772179 */
21782180vacrel -> do_index_vacuuming = false;
21792181ereport (elevel ,
2180- (errmsg ("\"%s\": index scan bypassed: %u pages from table (%.2f%% of total) have %lld dead item identifiers" ,
2182+ (errmsg ("table \"%s\": index scan bypassed: %u pages from table (%.2f%% of total) have %lld dead item identifiers" ,
21812183vacrel -> relname ,vacrel -> lpdead_item_pages ,
21822184100.0 * vacrel -> lpdead_item_pages /vacrel -> rel_pages ,
21832185(long long )vacrel -> lpdead_items )));
@@ -2388,8 +2390,8 @@ lazy_vacuum_heap_rel(LVRelState *vacrel)
23882390vacuumed_pages == vacrel -> lpdead_item_pages ));
23892391
23902392ereport (elevel ,
2391- (errmsg ("\"%s\": removed %d dead item identifiers in %u pages" ,
2392- vacrel -> relname ,tupindex ,vacuumed_pages ),
2393+ (errmsg ("table \"%s\": removed %lld dead item identifiers in %u pages" ,
2394+ vacrel -> relname ,( long long ) tupindex ,vacuumed_pages ),
23932395errdetail_internal ("%s" ,pg_rusage_show (& ru0 ))));
23942396
23952397/* Revert to the previous phase information for error traceback */
@@ -2625,7 +2627,7 @@ lazy_check_wraparound_failsafe(LVRelState *vacrel)
26252627vacrel -> relnamespace ,
26262628vacrel -> relname ,
26272629vacrel -> num_index_scans ),
2628- errdetail ("table's relfrozenxid or relminmxid is too far in the past" ),
2630+ errdetail ("The table's relfrozenxid or relminmxid is too far in the past. " ),
26292631errhint ("Consider increasing configuration parameter \"maintenance_work_mem\" or \"autovacuum_work_mem\".\n"
26302632"You might also need to consider other ways for VACUUM to keep up with the allocation of transaction IDs." )));
26312633
@@ -4265,7 +4267,7 @@ vacuum_error_callback(void *arg)
42654267if (BlockNumberIsValid (errinfo -> blkno ))
42664268{
42674269if (OffsetNumberIsValid (errinfo -> offnum ))
4268- errcontext ("while scanning block %uand offset %u of relation \"%s.%s\"" ,
4270+ errcontext ("while scanning block %u offset %u of relation \"%s.%s\"" ,
42694271errinfo -> blkno ,errinfo -> offnum ,errinfo -> relnamespace ,errinfo -> relname );
42704272else
42714273errcontext ("while scanning block %u of relation \"%s.%s\"" ,
@@ -4280,7 +4282,7 @@ vacuum_error_callback(void *arg)
42804282if (BlockNumberIsValid (errinfo -> blkno ))
42814283{
42824284if (OffsetNumberIsValid (errinfo -> offnum ))
4283- errcontext ("while vacuuming block %uand offset %u of relation \"%s.%s\"" ,
4285+ errcontext ("while vacuuming block %u offset %u of relation \"%s.%s\"" ,
42844286errinfo -> blkno ,errinfo -> offnum ,errinfo -> relnamespace ,errinfo -> relname );
42854287else
42864288errcontext ("while vacuuming block %u of relation \"%s.%s\"" ,