diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index f16d326842db6fd3d29201e26a27f17ece747e83..f6daf79e22ab0d524448ad8fd7858095a80cad14 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *	  $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.473 2004/08/22 00:08:28 tgl Exp $
+ *	  $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.474 2004/08/24 20:41:40 tgl Exp $
  *
  * HISTORY
  *	  AUTHOR			DATE			MAJOR EVENT
@@ -3231,7 +3231,7 @@ index_params:	index_elem							{ $$ = list_make1($1); }
  * expressions in parens.  For backwards-compatibility reasons, we allow
  * an expression that's just a function call to be written without parens.
  */
-index_elem:	attr_name opt_class
+index_elem:	ColId opt_class
 				{
 					$$ = makeNode(IndexElem);
 					$$->name = $1;
@@ -7464,7 +7464,7 @@ database_name:
 access_method:
 			ColId									{ $$ = $1; };
 
-attr_name:	ColId									{ $$ = $1; };
+attr_name:	ColLabel								{ $$ = $1; };
 
 index_name: ColId									{ $$ = $1; };