Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit85dfe37

Browse files
committed
Ratchet up patch to improve autovacuum wraparound messages.
Simon Riggs
1 parent11c794f commit85dfe37

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/backend/postmaster/autovacuum.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
*
5656
*
5757
* IDENTIFICATION
58-
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.82 2008/07/21 15:27:02 alvherre Exp $
58+
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.83 2008/07/23 20:20:10 alvherre Exp $
5959
*
6060
*-------------------------------------------------------------------------
6161
*/
@@ -2650,16 +2650,15 @@ autovacuum_do_vac_analyze(autovac_table *tab,
26502650
staticvoid
26512651
autovac_report_activity(autovac_table*tab)
26522652
{
2653-
#defineMAX_AUTOVAC_ACTIV_LEN (NAMEDATALEN * 2 +32)
2653+
#defineMAX_AUTOVAC_ACTIV_LEN (NAMEDATALEN * 2 +56)
26542654
charactivity[MAX_AUTOVAC_ACTIV_LEN];
26552655
intlen;
26562656

26572657
/* Report the command and possible options */
26582658
if (tab->at_dovacuum)
26592659
snprintf(activity,MAX_AUTOVAC_ACTIV_LEN,
2660-
"autovacuum: VACUUM%s%s",
2661-
tab->at_doanalyze ?" ANALYZE" :"",
2662-
tab->at_wraparound ?" (to prevent wraparound)" :"");
2660+
"autovacuum: VACUUM%s",
2661+
tab->at_doanalyze ?" ANALYZE" :"");
26632662
else
26642663
snprintf(activity,MAX_AUTOVAC_ACTIV_LEN,
26652664
"autovacuum: ANALYZE");
@@ -2670,7 +2669,8 @@ autovac_report_activity(autovac_table *tab)
26702669
len=strlen(activity);
26712670

26722671
snprintf(activity+len,MAX_AUTOVAC_ACTIV_LEN-len,
2673-
" %s.%s",tab->at_nspname,tab->at_relname);
2672+
" %s.%s%s",tab->at_nspname,tab->at_relname,
2673+
tab->at_wraparound ?" (to prevent wraparound)" :"");
26742674

26752675
/* Set statement_timestamp() to current time for pg_stat_activity */
26762676
SetCurrentStatementStartTimestamp();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp