-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
mixed_version_pgvector
60 lines (43 loc) · 1.09 KB
/
mixed_version_pgvector
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# LogicTest: cockroach-go-testserver-23.2
# Verify that all nodes are running the previous version.
query T nodeidx=0
SELECT crdb_internal.node_executable_version()
----
23.2
query T nodeidx=1
SELECT crdb_internal.node_executable_version()
----
23.2
query T nodeidx=2
SELECT crdb_internal.node_executable_version()
----
23.2
statement error syntax error
CREATE TABLE t (v VECTOR(1))
# Upgrade one node to 24.2
upgrade 0
# Verify that node index 0 is now running 24.2 binary.
query T nodeidx=0
SELECT crdb_internal.release_series(crdb_internal.node_executable_version())
----
24.2
statement error pg_vector not supported until version 24.2
CREATE TABLE t (v VECTOR(1))
upgrade 1
upgrade 2
statement ok
SET CLUSTER SETTING version = crdb_internal.node_executable_version();
query T nodeidx=1
SELECT crdb_internal.release_series(crdb_internal.node_executable_version())
----
24.2
query T nodeidx=2
SELECT crdb_internal.release_series(crdb_internal.node_executable_version())
----
24.2
query B retry
SELECT crdb_internal.is_at_least_version('24.1-02')
----
true
statement ok
CREATE TABLE t (v VECTOR(1))