1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-24 10:47:04 +03:00

pgindent C file, per patch request.

This commit is contained in:
Bruce Momjian 2003-09-13 16:27:38 +00:00
parent 3bf080daaf
commit 2056f8a7da

View File

@ -96,8 +96,10 @@ init_table_info(PGresult *res, int row, db_info * dbi)
return NULL;
}
/* Put both the schema and table name in quotes so that
we can work with mixed case table names */
/*
* Put both the schema and table name in quotes so that we can work
* with mixed case table names
*/
strcpy(new_tbl->table_name, "\"");
strcat(new_tbl->table_name, new_tbl->schema_name);
strcat(new_tbl->table_name, "\".\"");
@ -1084,8 +1086,11 @@ main(int argc, char *argv[])
*/
if ((tbl->curr_vacuum_count - tbl->CountAtLastVacuum) >= tbl->vacuum_threshold)
{
/* if relisshared = t and database != template1 then only do an analyze */
if((tbl->relisshared > 0) && (strcmp("template1",dbs->dbname)))
/*
* if relisshared = t and database !=
* template1 then only do an analyze
*/
if ((tbl->relisshared > 0) && (strcmp("template1", dbs->dbname)))
snprintf(buf, sizeof(buf), "ANALYZE %s", tbl->table_name);
else
snprintf(buf, sizeof(buf), "VACUUM ANALYZE %s", tbl->table_name);