File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 77 *
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.11 1997/03/19 07:52:03 vadim Exp $
10+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.12 1997/03/26 03:05:28 vadim Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -107,7 +107,10 @@ DefineIndex(char *heapRelationName,
107107 relationId = tuple -> t_oid ;
108108
109109 if (unique && strcmp (accessMethodName ,"btree" ) != 0 )
110- elog (WARN , "DefineIndex: unique indexes are only available with the btree access method" );
110+ elog (WARN , "DefineIndex: unique indices are only available with the btree access method" );
111+
112+ if (numberOfAttributes > 1 && strcmp (accessMethodName ,"btree" ) != 0 )
113+ elog (WARN , "DefineIndex: multi-column indices are only available with the btree access method" );
111114
112115 /*
113116 * compute access method id
You can’t perform that action at this time.
0 commit comments