Skip to content

Commit 1f01d59

Browse files
committed
Fix display of database name during autovacuum.
Cosimo Streppone
1 parent 2becf48 commit 1f01d59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/pg_autovacuum/pg_autovacuum.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Revisions by Christopher B. Browne, Liberty RMS
55
* Win32 Service code added by Dave Page
66
*
7-
* $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.34 2005/05/11 18:07:14 momjian Exp $
7+
* $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.35 2005/06/15 13:55:23 momjian Exp $
88
*/
99

1010
#include "postgres_fe.h"
@@ -479,7 +479,7 @@ remove_table_from_list(Dlelem *tbl_to_remove)
479479

480480
if (args->debug >= 1)
481481
{
482-
sprintf(logbuffer, "Removing table: %s from list.", tbl->table_name);
482+
sprintf(logbuffer, "Removing table: %s.%s from list.", tbl->dbi->dbname, tbl->table_name);
483483
log_entry(logbuffer, LVL_DEBUG);
484484
fflush(LOGOUTPUT);
485485
}
@@ -1064,7 +1064,7 @@ perform_maintenance_command(db_info * dbi, tbl_info * tbl, int operation)
10641064

10651065
if (args->debug >= 1)
10661066
{
1067-
sprintf(logbuffer, "Performing: %s", buf);
1067+
sprintf(logbuffer, "Performing: %s on database %s", buf, dbi->dbname);
10681068
log_entry(logbuffer, LVL_DEBUG);
10691069
fflush(LOGOUTPUT);
10701070
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy