Skip to content

Commit c924030

Browse files
committed
Fix cherry-pick issue
1 parent efa49da commit c924030

File tree

5 files changed

+14
-25
lines changed

5 files changed

+14
-25
lines changed

src/test/isolation2/expected/brin_heap.out

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
-- White-box tests are necessary to ensure that summarization is done
33
-- successfully (to avoid cases where ranges have brin data tuples without
44
-- values or where the range is not covered by the revmap etc)
5-
CREATE EXTENSION pageinspect;
6-
CREATE
75

86
-- Turn off sequential scans to force usage of BRIN indexes for scans.
97
SET enable_seqscan TO off;
@@ -317,5 +315,3 @@ SELECT gp_inject_fault('brin_bitmap_page_added', 'reset', dbid) FROM gp_segment_
317315

318316
RESET enable_seqscan;
319317
RESET
320-
DROP EXTENSION pageinspect;
321-
DROP

src/test/isolation2/input/uao/brin.source

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,4 +572,3 @@ SELECT gp_inject_fault('brin_bitmap_page_added', 'reset', dbid)
572572
FROM gp_segment_configuration WHERE content = 1 AND role = 'p';
573573

574574
RESET enable_seqscan;
575-
DROP EXTENSION pageinspect;

src/test/isolation2/output/uao/brin.source

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,6 @@ INSERT 1
820820
1 | 33554432 | 1 | f | f | t | {20 .. 30}
821821
(1 row)
822822

823-
<<<<<<< HEAD
824-
=======
825823
--------------------------------------------------------------------------------
826824
-- Summarization with multiple block sequences (segfiles).
827825
--------------------------------------------------------------------------------
@@ -1257,6 +1255,3 @@ SELECT gp_inject_fault('brin_bitmap_page_added', 'reset', dbid) FROM gp_segment_
12571255

12581256
RESET enable_seqscan;
12591257
RESET
1260-
DROP EXTENSION pageinspect;
1261-
DROP
1262-
>>>>>>> 46766ec0380 (brin ao/co: Ensure final range summarization: build)

src/test/isolation2/output/uao/brin_chain.source

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,34 +74,35 @@ CREATE
7474
0 | meta
7575
1 | revmap
7676
2 | regular
77-
3 | regular
77+
3 | revmap
7878
4 | regular
7979
5 | regular
80-
6 | revmap
80+
6 | regular
8181
7 | revmap
82-
(8 rows)
82+
8 | revmap
83+
(9 rows)
8384
1U: SELECT firstrevmappages[:5] FROM brin_metapage_info(get_raw_page('brin_chain_@amname@_i_idx', 0));
84-
firstrevmappages
85-
-----0--------------
86-
[-1, 1, -1, 7, -1]
85+
firstrevmappages
86+
-------------------
87+
[1, 3, -1, 8, -1]
8788
(1 row)
8889
1U: SELECT lastrevmappages[:5] FROM brin_metapage_info(get_raw_page('brin_chain_@amname@_i_idx', 0));
89-
lastrevmappages
90-
--------------------
91-
[-1, 6, -1, 7, -1]
90+
lastrevmappages
91+
-------------------
92+
[1, 7, -1, 8, -1]
9293
(1 row)
9394
1U: SELECT lastrevmappagenums[:5] FROM brin_metapage_info(get_raw_page('brin_chain_@amname@_i_idx', 0));
9495
lastrevmappagenums
9596
--------------------
96-
[0, 2, 0, 1, 0]
97+
[1, 2, 0, 1, 0]
9798
(1 row)
9899
1U: SELECT segnum, brin_revmap_chain('brin_chain_@amname@_i_idx', segnum) AS chain FROM generate_series(0, 3) segnum;
99100
segnum | chain
100101
--------+--------
101-
0 |
102-
1 | [1, 6]
102+
0 | [1]
103+
1 | [3, 7]
103104
2 |
104-
3 | [7]
105+
3 | [8]
105106
(4 rows)
106107

107108
-- Now test index retrieval. We should be able to:

src/test/isolation2/sql/brin_heap.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
-- White-box tests are necessary to ensure that summarization is done
33
-- successfully (to avoid cases where ranges have brin data tuples without
44
-- values or where the range is not covered by the revmap etc)
5-
CREATE EXTENSION pageinspect;
65

76
-- Turn off sequential scans to force usage of BRIN indexes for scans.
87
SET enable_seqscan TO off;
@@ -141,4 +140,3 @@ SELECT gp_inject_fault('brin_bitmap_page_added', 'reset', dbid)
141140
FROM gp_segment_configuration WHERE content = 1 AND role = 'p';
142141

143142
RESET enable_seqscan;
144-
DROP EXTENSION pageinspect;

0 commit comments

Comments
 (0)