*** src/backend/commands/indexcmds.c.bak 2009-09-19 11:56:57.000000000 +0200 --- src/backend/commands/indexcmds.c 2009-09-19 12:09:17.000000000 +0200 *************** *** 127,132 **** --- 127,133 ---- Datum reloptions; int16 *coloptions; IndexInfo *indexInfo; + bool implicitNameUsed = false; int numberOfAttributes; VirtualTransactionId *old_lockholders; VirtualTransactionId *old_snapshots; *************** *** 242,247 **** --- 243,250 ---- */ if (indexRelationName == NULL) { + implicitNameUsed = true; + if (primary) indexRelationName = ChooseRelationName(RelationGetRelationName(rel), NULL, *************** *** 430,436 **** * Report index creation if appropriate (delay this till after most of the * error checks) */ ! if (isconstraint && !quiet) ereport(NOTICE, (errmsg("%s %s will create implicit index \"%s\" for table \"%s\"", is_alter_table ? "ALTER TABLE / ADD" : "CREATE TABLE /", --- 433,439 ---- * Report index creation if appropriate (delay this till after most of the * error checks) */ ! if (isconstraint && implicitNameUsed && !quiet) ereport(NOTICE, (errmsg("%s %s will create implicit index \"%s\" for table \"%s\"", is_alter_table ? "ALTER TABLE / ADD" : "CREATE TABLE /",