diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index e492b9163ca59d6e9fc23bb11773f3d72b427956..6fe28daf07f28443e9f2437be2b7416c10dd31e7 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.1 1999/02/24 17:28:58 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.2 1999/03/14 05:23:12 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -502,6 +502,9 @@ NormIndexAttrs(List *attList,	/* list of IndexElem's */
 			/* we just set the type name because that is all we need */
 			attribute->typename = makeNode(TypeName);
 			attribute->typename->name = nameout(&((Form_pg_type) GETSTRUCT(tuple))->typname);
+			
+			/* we all need the typmod for the char and varchar types. */
+			attribute->typename->typmod = attform->atttypmod;
 		}
 
 		if (attribute->class == NULL)