Skip to content

Commit 7fd4109

Browse files
author
Pavel Safonov
committed
postgres: add btree index tests
1 parent 3c7ed5d commit 7fd4109

File tree

15 files changed

+760
-0
lines changed

15 files changed

+760
-0
lines changed
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
$ fq -d pg_btree ".[1].pd_linp[0,1,2,3,4,5,6,7,8,9] | dv" 16401
2+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].pd_linp[0]{}: item_id 0x2018-0x201b.7 (4)
3+
0x2010| 00 89 20 00 | .. . | lp_off: 2304 0x2018-0x201b.7 (4)
4+
0x2010| 00 89 20 00 | .. . | lp_flags: "LP_NORMAL" (1) 0x2018-0x201b.7 (4)
5+
0x2010| 00 89 20 00 | .. . | lp_len: 16 0x2018-0x201b.7 (4)
6+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].pd_linp[1]{}: item_id 0x201c-0x201f.7 (4)
7+
0x2010| e0 9f 20 00| .. .| lp_off: 8160 0x201c-0x201f.7 (4)
8+
0x2010| e0 9f 20 00| .. .| lp_flags: "LP_NORMAL" (1) 0x201c-0x201f.7 (4)
9+
0x2010| e0 9f 20 00| .. .| lp_len: 16 0x201c-0x201f.7 (4)
10+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].pd_linp[2]{}: item_id 0x2020-0x2023.7 (4)
11+
0x2020|d0 9f 20 00 |.. . | lp_off: 8144 0x2020-0x2023.7 (4)
12+
0x2020|d0 9f 20 00 |.. . | lp_flags: "LP_NORMAL" (1) 0x2020-0x2023.7 (4)
13+
0x2020|d0 9f 20 00 |.. . | lp_len: 16 0x2020-0x2023.7 (4)
14+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].pd_linp[3]{}: item_id 0x2024-0x2027.7 (4)
15+
0x2020| c0 9f 20 00 | .. . | lp_off: 8128 0x2024-0x2027.7 (4)
16+
0x2020| c0 9f 20 00 | .. . | lp_flags: "LP_NORMAL" (1) 0x2024-0x2027.7 (4)
17+
0x2020| c0 9f 20 00 | .. . | lp_len: 16 0x2024-0x2027.7 (4)
18+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].pd_linp[4]{}: item_id 0x2028-0x202b.7 (4)
19+
0x2020| b0 9f 20 00 | .. . | lp_off: 8112 0x2028-0x202b.7 (4)
20+
0x2020| b0 9f 20 00 | .. . | lp_flags: "LP_NORMAL" (1) 0x2028-0x202b.7 (4)
21+
0x2020| b0 9f 20 00 | .. . | lp_len: 16 0x2028-0x202b.7 (4)
22+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].pd_linp[5]{}: item_id 0x202c-0x202f.7 (4)
23+
0x2020| a0 9f 20 00| .. .| lp_off: 8096 0x202c-0x202f.7 (4)
24+
0x2020| a0 9f 20 00| .. .| lp_flags: "LP_NORMAL" (1) 0x202c-0x202f.7 (4)
25+
0x2020| a0 9f 20 00| .. .| lp_len: 16 0x202c-0x202f.7 (4)
26+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].pd_linp[6]{}: item_id 0x2030-0x2033.7 (4)
27+
0x2030|90 9f 20 00 |.. . | lp_off: 8080 0x2030-0x2033.7 (4)
28+
0x2030|90 9f 20 00 |.. . | lp_flags: "LP_NORMAL" (1) 0x2030-0x2033.7 (4)
29+
0x2030|90 9f 20 00 |.. . | lp_len: 16 0x2030-0x2033.7 (4)
30+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].pd_linp[7]{}: item_id 0x2034-0x2037.7 (4)
31+
0x2030| 80 9f 20 00 | .. . | lp_off: 8064 0x2034-0x2037.7 (4)
32+
0x2030| 80 9f 20 00 | .. . | lp_flags: "LP_NORMAL" (1) 0x2034-0x2037.7 (4)
33+
0x2030| 80 9f 20 00 | .. . | lp_len: 16 0x2034-0x2037.7 (4)
34+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].pd_linp[8]{}: item_id 0x2038-0x203b.7 (4)
35+
0x2030| 70 9f 20 00 | p. . | lp_off: 8048 0x2038-0x203b.7 (4)
36+
0x2030| 70 9f 20 00 | p. . | lp_flags: "LP_NORMAL" (1) 0x2038-0x203b.7 (4)
37+
0x2030| 70 9f 20 00 | p. . | lp_len: 16 0x2038-0x203b.7 (4)
38+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].pd_linp[9]{}: item_id 0x203c-0x203f.7 (4)
39+
0x2030| 60 9f 20 00| `. .| lp_off: 8032 0x203c-0x203f.7 (4)
40+
0x2030| 60 9f 20 00| `. .| lp_flags: "LP_NORMAL" (1) 0x203c-0x203f.7 (4)
41+
0x2030| 60 9f 20 00| `. .| lp_len: 16 0x203c-0x203f.7 (4)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
$ fq -d pg_btree ".[1].tuples[0,1,2,3,4,5,6,7,8,9] | dv" 16401
2+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].tuples[0]{}: tuple 0x2900-0x290f.7 (16)
3+
| | | index_tuple_data{}: 0x2900-0x290f.7 (16)
4+
| | | t_tid{}: 0x2900-0x2905.7 (6)
5+
0x2900|00 00 06 00 |.... | ip_blkid: 393216 0x2900-0x2903.7 (4)
6+
0x2900| 01 00 | .. | ip_posid: 1 0x2904-0x2905.7 (2)
7+
0x2900| 10 00 | .. | t_info: 16 0x2906-0x2907.7 (2)
8+
| | | flags{}: 0x2908-NA (0)
9+
| | | has_nulls: false 0x2908-NA (0)
10+
| | | has_var_widths: false 0x2908-NA (0)
11+
| | | size: 16 0x2908-NA (0)
12+
0x2900| 6f 01 00 00 00 00 00 00| o.......| data: raw bits 0x2908-0x290f.7 (8)
13+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].tuples[1]{}: tuple 0x3fe0-0x3fef.7 (16)
14+
| | | index_tuple_data{}: 0x3fe0-0x3fef.7 (16)
15+
| | | t_tid{}: 0x3fe0-0x3fe5.7 (6)
16+
0x3fe0|00 00 00 00 |.... | ip_blkid: 0 0x3fe0-0x3fe3.7 (4)
17+
0x3fe0| 01 00 | .. | ip_posid: 1 0x3fe4-0x3fe5.7 (2)
18+
0x3fe0| 10 00 | .. | t_info: 16 0x3fe6-0x3fe7.7 (2)
19+
| | | flags{}: 0x3fe8-NA (0)
20+
| | | has_nulls: false 0x3fe8-NA (0)
21+
| | | has_var_widths: false 0x3fe8-NA (0)
22+
| | | size: 16 0x3fe8-NA (0)
23+
0x3fe0| 01 00 00 00 00 00 00 00| ........| data: raw bits 0x3fe8-0x3fef.7 (8)
24+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].tuples[2]{}: tuple 0x3fd0-0x3fdf.7 (16)
25+
| | | index_tuple_data{}: 0x3fd0-0x3fdf.7 (16)
26+
| | | t_tid{}: 0x3fd0-0x3fd5.7 (6)
27+
0x3fd0|00 00 00 00 |.... | ip_blkid: 0 0x3fd0-0x3fd3.7 (4)
28+
0x3fd0| 02 00 | .. | ip_posid: 2 0x3fd4-0x3fd5.7 (2)
29+
0x3fd0| 10 00 | .. | t_info: 16 0x3fd6-0x3fd7.7 (2)
30+
| | | flags{}: 0x3fd8-NA (0)
31+
| | | has_nulls: false 0x3fd8-NA (0)
32+
| | | has_var_widths: false 0x3fd8-NA (0)
33+
| | | size: 16 0x3fd8-NA (0)
34+
0x3fd0| 02 00 00 00 00 00 00 00| ........| data: raw bits 0x3fd8-0x3fdf.7 (8)
35+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].tuples[3]{}: tuple 0x3fc0-0x3fcf.7 (16)
36+
| | | index_tuple_data{}: 0x3fc0-0x3fcf.7 (16)
37+
| | | t_tid{}: 0x3fc0-0x3fc5.7 (6)
38+
0x3fc0|00 00 00 00 |.... | ip_blkid: 0 0x3fc0-0x3fc3.7 (4)
39+
0x3fc0| 03 00 | .. | ip_posid: 3 0x3fc4-0x3fc5.7 (2)
40+
0x3fc0| 10 00 | .. | t_info: 16 0x3fc6-0x3fc7.7 (2)
41+
| | | flags{}: 0x3fc8-NA (0)
42+
| | | has_nulls: false 0x3fc8-NA (0)
43+
| | | has_var_widths: false 0x3fc8-NA (0)
44+
| | | size: 16 0x3fc8-NA (0)
45+
0x3fc0| 03 00 00 00 00 00 00 00| ........| data: raw bits 0x3fc8-0x3fcf.7 (8)
46+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].tuples[4]{}: tuple 0x3fb0-0x3fbf.7 (16)
47+
| | | index_tuple_data{}: 0x3fb0-0x3fbf.7 (16)
48+
| | | t_tid{}: 0x3fb0-0x3fb5.7 (6)
49+
0x3fb0|00 00 00 00 |.... | ip_blkid: 0 0x3fb0-0x3fb3.7 (4)
50+
0x3fb0| 04 00 | .. | ip_posid: 4 0x3fb4-0x3fb5.7 (2)
51+
0x3fb0| 10 00 | .. | t_info: 16 0x3fb6-0x3fb7.7 (2)
52+
| | | flags{}: 0x3fb8-NA (0)
53+
| | | has_nulls: false 0x3fb8-NA (0)
54+
| | | has_var_widths: false 0x3fb8-NA (0)
55+
| | | size: 16 0x3fb8-NA (0)
56+
0x3fb0| 04 00 00 00 00 00 00 00| ........| data: raw bits 0x3fb8-0x3fbf.7 (8)
57+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].tuples[5]{}: tuple 0x3fa0-0x3faf.7 (16)
58+
| | | index_tuple_data{}: 0x3fa0-0x3faf.7 (16)
59+
| | | t_tid{}: 0x3fa0-0x3fa5.7 (6)
60+
0x3fa0|00 00 00 00 |.... | ip_blkid: 0 0x3fa0-0x3fa3.7 (4)
61+
0x3fa0| 05 00 | .. | ip_posid: 5 0x3fa4-0x3fa5.7 (2)
62+
0x3fa0| 10 00 | .. | t_info: 16 0x3fa6-0x3fa7.7 (2)
63+
| | | flags{}: 0x3fa8-NA (0)
64+
| | | has_nulls: false 0x3fa8-NA (0)
65+
| | | has_var_widths: false 0x3fa8-NA (0)
66+
| | | size: 16 0x3fa8-NA (0)
67+
0x3fa0| 05 00 00 00 00 00 00 00| ........| data: raw bits 0x3fa8-0x3faf.7 (8)
68+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].tuples[6]{}: tuple 0x3f90-0x3f9f.7 (16)
69+
| | | index_tuple_data{}: 0x3f90-0x3f9f.7 (16)
70+
| | | t_tid{}: 0x3f90-0x3f95.7 (6)
71+
0x3f90|00 00 00 00 |.... | ip_blkid: 0 0x3f90-0x3f93.7 (4)
72+
0x3f90| 06 00 | .. | ip_posid: 6 0x3f94-0x3f95.7 (2)
73+
0x3f90| 10 00 | .. | t_info: 16 0x3f96-0x3f97.7 (2)
74+
| | | flags{}: 0x3f98-NA (0)
75+
| | | has_nulls: false 0x3f98-NA (0)
76+
| | | has_var_widths: false 0x3f98-NA (0)
77+
| | | size: 16 0x3f98-NA (0)
78+
0x3f90| 06 00 00 00 00 00 00 00| ........| data: raw bits 0x3f98-0x3f9f.7 (8)
79+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].tuples[7]{}: tuple 0x3f80-0x3f8f.7 (16)
80+
| | | index_tuple_data{}: 0x3f80-0x3f8f.7 (16)
81+
| | | t_tid{}: 0x3f80-0x3f85.7 (6)
82+
0x3f80|00 00 00 00 |.... | ip_blkid: 0 0x3f80-0x3f83.7 (4)
83+
0x3f80| 07 00 | .. | ip_posid: 7 0x3f84-0x3f85.7 (2)
84+
0x3f80| 10 00 | .. | t_info: 16 0x3f86-0x3f87.7 (2)
85+
| | | flags{}: 0x3f88-NA (0)
86+
| | | has_nulls: false 0x3f88-NA (0)
87+
| | | has_var_widths: false 0x3f88-NA (0)
88+
| | | size: 16 0x3f88-NA (0)
89+
0x3f80| 07 00 00 00 00 00 00 00| ........| data: raw bits 0x3f88-0x3f8f.7 (8)
90+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].tuples[8]{}: tuple 0x3f70-0x3f7f.7 (16)
91+
| | | index_tuple_data{}: 0x3f70-0x3f7f.7 (16)
92+
| | | t_tid{}: 0x3f70-0x3f75.7 (6)
93+
0x3f70|00 00 00 00 |.... | ip_blkid: 0 0x3f70-0x3f73.7 (4)
94+
0x3f70| 08 00 | .. | ip_posid: 8 0x3f74-0x3f75.7 (2)
95+
0x3f70| 10 00 | .. | t_info: 16 0x3f76-0x3f77.7 (2)
96+
| | | flags{}: 0x3f78-NA (0)
97+
| | | has_nulls: false 0x3f78-NA (0)
98+
| | | has_var_widths: false 0x3f78-NA (0)
99+
| | | size: 16 0x3f78-NA (0)
100+
0x3f70| 08 00 00 00 00 00 00 00| ........| data: raw bits 0x3f78-0x3f7f.7 (8)
101+
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.[1].tuples[9]{}: tuple 0x3f60-0x3f6f.7 (16)
102+
| | | index_tuple_data{}: 0x3f60-0x3f6f.7 (16)
103+
| | | t_tid{}: 0x3f60-0x3f65.7 (6)
104+
0x3f60|00 00 00 00 |.... | ip_blkid: 0 0x3f60-0x3f63.7 (4)
105+
0x3f60| 09 00 | .. | ip_posid: 9 0x3f64-0x3f65.7 (2)
106+
0x3f60| 10 00 | .. | t_info: 16 0x3f66-0x3f67.7 (2)
107+
| | | flags{}: 0x3f68-NA (0)
108+
| | | has_nulls: false 0x3f68-NA (0)
109+
| | | has_var_widths: false 0x3f68-NA (0)
110+
| | | size: 16 0x3f68-NA (0)
111+
0x3f60| 09 00 00 00 00 00 00 00| ........| data: raw bits 0x3f68-0x3f6f.7 (8)
Binary file not shown.

0 commit comments

Comments
 (0)