|
|
|
@ -4,7 +4,7 @@ |
|
|
|
|
* |
|
|
|
|
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group |
|
|
|
|
* |
|
|
|
|
* $PostgreSQL: pgsql/src/bin/scripts/reindexdb.c,v 1.5 2006/03/05 15:58:52 momjian Exp $ |
|
|
|
|
* $PostgreSQL: pgsql/src/bin/scripts/reindexdb.c,v 1.6 2006/09/02 02:43:07 momjian Exp $ |
|
|
|
|
* |
|
|
|
|
*------------------------------------------------------------------------- |
|
|
|
|
*/ |
|
|
|
@ -229,6 +229,13 @@ reindex_one_database(const char *name, const char *dbname, const char *type, |
|
|
|
|
|
|
|
|
|
conn = connectDatabase(dbname, host, port, username, password, progname); |
|
|
|
|
|
|
|
|
|
/* Suppress some NOTICE messages from REINDEX command */ |
|
|
|
|
if (quiet) |
|
|
|
|
{ |
|
|
|
|
result = PQexec(conn, "SET client_min_messages = warning"); |
|
|
|
|
PQclear(result); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (echo) |
|
|
|
|
printf("%s", sql.data); |
|
|
|
|
result = PQexec(conn, sql.data); |
|
|
|
|