diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-03-26 03:05:28 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-03-26 03:05:28 +0000 |
commit | 3be7ecb2e4e4795080a18c272f41ce1e38307e04 (patch) | |
tree | c7fa97bf167e06d5d96a651638f0c695fe6712d4 /src/backend/commands/defind.c | |
parent | d6b2f41c077ac4f4ffdb722f58a5f19be161db35 (diff) | |
download | postgresql-3be7ecb2e4e4795080a18c272f41ce1e38307e04.tar.gz |
Disallow to create multi-column indices using non-btree.
Diffstat (limited to 'src/backend/commands/defind.c')
-rw-r--r-- | src/backend/commands/defind.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/commands/defind.c b/src/backend/commands/defind.c index 7eee417077..c6b293fec6 100644 --- a/src/backend/commands/defind.c +++ b/src/backend/commands/defind.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.11 1997/03/19 07:52:03 vadim Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.12 1997/03/26 03:05:28 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -107,7 +107,10 @@ DefineIndex(char *heapRelationName, relationId = tuple->t_oid; if (unique && strcmp(accessMethodName,"btree") != 0) - elog(WARN, "DefineIndex: unique indexes are only available with the btree access method"); + elog(WARN, "DefineIndex: unique indices are only available with the btree access method"); + + if (numberOfAttributes > 1 && strcmp(accessMethodName,"btree") != 0) + elog(WARN, "DefineIndex: multi-column indices are only available with the btree access method"); /* * compute access method id |