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