Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3be7ecb

Browse files
committed
Disallow to create multi-column indices using non-btree.
1 parentd6b2f41 commit3be7ecb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/backend/commands/defind.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp