Commit 1f01d59e authored by Bruce Momjian's avatar Bruce Momjian

Fix display of database name during autovacuum.

 Cosimo Streppone
parent 2becf484
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Revisions by Christopher B. Browne, Liberty RMS * Revisions by Christopher B. Browne, Liberty RMS
* Win32 Service code added by Dave Page * Win32 Service code added by Dave Page
* *
* $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.34 2005/05/11 18:07:14 momjian Exp $ * $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.35 2005/06/15 13:55:23 momjian Exp $
*/ */
#include "postgres_fe.h" #include "postgres_fe.h"
...@@ -479,7 +479,7 @@ remove_table_from_list(Dlelem *tbl_to_remove) ...@@ -479,7 +479,7 @@ remove_table_from_list(Dlelem *tbl_to_remove)
if (args->debug >= 1) if (args->debug >= 1)
{ {
sprintf(logbuffer, "Removing table: %s from list.", tbl->table_name); sprintf(logbuffer, "Removing table: %s.%s from list.", tbl->dbi->dbname, tbl->table_name);
log_entry(logbuffer, LVL_DEBUG); log_entry(logbuffer, LVL_DEBUG);
fflush(LOGOUTPUT); fflush(LOGOUTPUT);
} }
...@@ -1064,7 +1064,7 @@ perform_maintenance_command(db_info * dbi, tbl_info * tbl, int operation) ...@@ -1064,7 +1064,7 @@ perform_maintenance_command(db_info * dbi, tbl_info * tbl, int operation)
if (args->debug >= 1) if (args->debug >= 1)
{ {
sprintf(logbuffer, "Performing: %s", buf); sprintf(logbuffer, "Performing: %s on database %s", buf, dbi->dbname);
log_entry(logbuffer, LVL_DEBUG); log_entry(logbuffer, LVL_DEBUG);
fflush(LOGOUTPUT); fflush(LOGOUTPUT);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment