|
4 | 4 | * Revisions by Christopher B. Browne, Liberty RMS
|
5 | 5 | * Win32 Service code added by Dave Page
|
6 | 6 | *
|
7 |
| - * $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.33 2005/05/1117:57:56 momjian Exp $ |
| 7 | + * $PostgreSQL: pgsql/contrib/pg_autovacuum/pg_autovacuum.c,v 1.34 2005/05/1118:07:14 momjian Exp $ |
8 | 8 | */
|
9 | 9 |
|
10 | 10 | #include"postgres_fe.h"
|
@@ -1056,9 +1056,9 @@ perform_maintenance_command(db_info * dbi, tbl_info * tbl, int operation)
|
1056 | 1056 | */
|
1057 | 1057 | if ((tbl->relisshared>0&&strcmp("template1",dbi->dbname)!=0)||
|
1058 | 1058 | (operation==ANALYZE_ONLY))
|
1059 |
| -snprintf(buf,sizeof(buf),"ANALYZE %s",tbl->table_name); |
| 1059 | +snprintf(buf,sizeof(buf),"ANALYZE %s.%s",dbi->dbname,tbl->table_name); |
1060 | 1060 | elseif (operation==VACUUM_ANALYZE)
|
1061 |
| -snprintf(buf,sizeof(buf),"VACUUM ANALYZE %s",tbl->table_name); |
| 1061 | +snprintf(buf,sizeof(buf),"VACUUM ANALYZE %s.%s",dbi->dbname,tbl->table_name); |
1062 | 1062 | else
|
1063 | 1063 | return;
|
1064 | 1064 |
|
|