@@ -10,10 +10,10 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/create_index.out
1010 -- BTREE
1111 --
1212 CREATE INDEX onek_unique1 ON onek USING btree(unique1 int4_ops);
13- +ERROR: operator classes are only allowed for the last column of an inverted index
13+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
1414 CREATE INDEX IF NOT EXISTS onek_unique1 ON onek USING btree(unique1 int4_ops);
1515-NOTICE: relation "onek_unique1" already exists, skipping
16- +ERROR: operator classes are only allowed for the last column of an inverted index
16+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
1717 CREATE INDEX IF NOT EXISTS ON onek USING btree(unique1 int4_ops);
1818-ERROR: syntax error at or near "ON"
1919-LINE 1: CREATE INDEX IF NOT EXISTS ON onek USING btree(unique1 int4_...
@@ -24,24 +24,24 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/create_index.out
2424+ ^
2525+HINT: try \h CREATE INDEX
2626 CREATE INDEX onek_unique2 ON onek USING btree(unique2 int4_ops);
27- +ERROR: operator classes are only allowed for the last column of an inverted index
27+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
2828 CREATE INDEX onek_hundred ON onek USING btree(hundred int4_ops);
29- +ERROR: operator classes are only allowed for the last column of an inverted index
29+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
3030 CREATE INDEX onek_stringu1 ON onek USING btree(stringu1 name_ops);
31- +ERROR: operator classes are only allowed for the last column of an inverted index
31+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
3232 CREATE INDEX tenk1_unique1 ON tenk1 USING btree(unique1 int4_ops);
33- +ERROR: operator classes are only allowed for the last column of an inverted index
33+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
3434 CREATE INDEX tenk1_unique2 ON tenk1 USING btree(unique2 int4_ops);
35- +ERROR: operator classes are only allowed for the last column of an inverted index
35+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
3636 CREATE INDEX tenk1_hundred ON tenk1 USING btree(hundred int4_ops);
37- +ERROR: operator classes are only allowed for the last column of an inverted index
37+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
3838 CREATE INDEX tenk1_thous_tenthous ON tenk1 (thousand, tenthous);
3939 CREATE INDEX tenk2_unique1 ON tenk2 USING btree(unique1 int4_ops);
40- +ERROR: operator classes are only allowed for the last column of an inverted index
40+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
4141 CREATE INDEX tenk2_unique2 ON tenk2 USING btree(unique2 int4_ops);
42- +ERROR: operator classes are only allowed for the last column of an inverted index
42+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
4343 CREATE INDEX tenk2_hundred ON tenk2 USING btree(hundred int4_ops);
44- +ERROR: operator classes are only allowed for the last column of an inverted index
44+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
4545 CREATE INDEX rix ON road USING btree (name text_ops);
4646+ERROR: relation "road" does not exist
4747 CREATE INDEX iix ON ihighway USING btree (name text_ops);
@@ -61,13 +61,13 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/create_index.out
6161 --
6262 CREATE INDEX onek2_u1_prtl ON onek2 USING btree(unique1 int4_ops)
6363 where unique1 < 20 or unique1 > 980;
64- +ERROR: operator classes are only allowed for the last column of an inverted index
64+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
6565 CREATE INDEX onek2_u2_prtl ON onek2 USING btree(unique2 int4_ops)
6666 where stringu1 < 'B';
67- +ERROR: operator classes are only allowed for the last column of an inverted index
67+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
6868 CREATE INDEX onek2_stu1_prtl ON onek2 USING btree(stringu1 name_ops)
6969 where onek2.stringu1 >= 'J' and onek2.stringu1 < 'K';
70- +ERROR: operator classes are only allowed for the last column of an inverted index
70+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
7171 --
7272 -- GiST (rtree-equivalent opclasses only)
7373 --
@@ -2086,7 +2086,7 @@ diff -U3 --label=/mnt/data1/postgres/src/test/regress/expected/create_index.out
20862086 DROP TABLE func_index_heap;
20872087 CREATE TABLE func_index_heap (f1 text, f2 text);
20882088 CREATE UNIQUE INDEX func_index_index on func_index_heap ((f1 || f2) text_ops);
2089- +ERROR: operator classes are only allowed for the last column of an inverted index
2089+ +ERROR: operator classes are only allowed for the last column of an inverted or vector index
20902090 INSERT INTO func_index_heap VALUES('ABC','DEF');
20912091 INSERT INTO func_index_heap VALUES('AB','CDEFG');
20922092 INSERT INTO func_index_heap VALUES('QWE','RTY');
0 commit comments