projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
561894a
)
a small tweak to enable display in the log file
author
Bruce Momjian
<bruce@momjian.us>
Wed, 11 May 2005 18:07:14 +0000
(18:07 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Wed, 11 May 2005 18:07:14 +0000
(18:07 +0000)
of database name before table name
when VACUUMing or ANALYZing a table.
Cosimo Streppone
contrib/pg_autovacuum/pg_autovacuum.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_autovacuum/pg_autovacuum.c
b/contrib/pg_autovacuum/pg_autovacuum.c
index e0afb9cfbd8abf94eaaf05c76b01bb9bc2e75f4e..1d10b835e70ee087a215ecb636ada8f176bcf39e 100644
(file)
--- a/
contrib/pg_autovacuum/pg_autovacuum.c
+++ b/
contrib/pg_autovacuum/pg_autovacuum.c
@@
-1056,9
+1056,9
@@
perform_maintenance_command(db_info * dbi, tbl_info * tbl, int operation)
*/
if ((tbl->relisshared > 0 && strcmp("template1", dbi->dbname) != 0) ||
(operation == ANALYZE_ONLY))
- snprintf(buf, sizeof(buf), "ANALYZE %s
"
, tbl->table_name);
+ snprintf(buf, sizeof(buf), "ANALYZE %s
.%s", dbi->dbname
, tbl->table_name);
else if (operation == VACUUM_ANALYZE)
- snprintf(buf, sizeof(buf), "VACUUM ANALYZE %s
"
, tbl->table_name);
+ snprintf(buf, sizeof(buf), "VACUUM ANALYZE %s
.%s", dbi->dbname
, tbl->table_name);
else
return;