1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-23 14:01:44 +03:00

Have REINDEX use NOTICE, so it can be suppressed.

This commit is contained in:
Bruce Momjian
2006-06-07 17:20:17 +00:00
parent ae0c8d09fb
commit e9f6679ce2

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.140 2006/06/07 13:13:16 momjian Exp $ * $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.141 2006/06/07 17:20:17 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -1108,7 +1108,7 @@ ReindexDatabase(const char *databaseName, bool do_system, bool do_user)
/* functions in indexes may want a snapshot set */ /* functions in indexes may want a snapshot set */
ActiveSnapshot = CopySnapshot(GetTransactionSnapshot()); ActiveSnapshot = CopySnapshot(GetTransactionSnapshot());
if (reindex_relation(relid, true)) if (reindex_relation(relid, true))
ereport(INFO, ereport(NOTICE,
(errmsg("table \"%s\" was reindexed", (errmsg("table \"%s\" was reindexed",
get_rel_name(relid)))); get_rel_name(relid))));
CommitTransactionCommand(); CommitTransactionCommand();