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

Commitcc99c57

Browse files
committed
a small tweak to enable display in the log file
of database name before table namewhen VACUUMing or ANALYZing a table.Cosimo Streppone
1 parentc5c1cc3 commitcc99c57

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.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 $
88
*/
99

1010
#include"postgres_fe.h"
@@ -1056,9 +1056,9 @@ perform_maintenance_command(db_info * dbi, tbl_info * tbl, int operation)
10561056
*/
10571057
if ((tbl->relisshared>0&&strcmp("template1",dbi->dbname)!=0)||
10581058
(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);
10601060
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);
10621062
else
10631063
return;
10641064

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp