Skip to content

Commit 18869e2

Browse files
committed
Fix new test case to not be endian-dependent.
Per buildfarm. Discussion: https://postgr.es/m/ec295792-a69f-350f-6287-25a20e8f31d5@gmail.com
1 parent cc6337d commit 18869e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contrib/pageinspect/expected/page.out

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,18 @@ ERROR: block number 0 is out of range for relation "test_part1"
9494
drop table test_partitioned;
9595
-- check null bitmap alignment for table whose number of attributes is multiple of 8
9696
create table test8 (f1 int, f2 int, f3 int, f4 int, f5 int, f6 int, f7 int, f8 int);
97-
insert into test8(f1, f8) values (x'f1'::int, 0);
97+
insert into test8(f1, f8) values (x'7f00007f'::int, 0);
9898
select t_bits, t_data from heap_page_items(get_raw_page('test8', 0));
9999
t_bits | t_data
100100
----------+--------------------
101-
10000001 | \xf100000000000000
101+
10000001 | \x7f00007f00000000
102102
(1 row)
103103

104104
select tuple_data_split('test8'::regclass, t_data, t_infomask, t_infomask2, t_bits)
105105
from heap_page_items(get_raw_page('test8', 0));
106106
tuple_data_split
107107
-------------------------------------------------------------
108-
{"\\xf1000000",NULL,NULL,NULL,NULL,NULL,NULL,"\\x00000000"}
108+
{"\\x7f00007f",NULL,NULL,NULL,NULL,NULL,NULL,"\\x00000000"}
109109
(1 row)
110110

111111
drop table test8;

contrib/pageinspect/sql/page.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ drop table test_partitioned;
4444

4545
-- check null bitmap alignment for table whose number of attributes is multiple of 8
4646
create table test8 (f1 int, f2 int, f3 int, f4 int, f5 int, f6 int, f7 int, f8 int);
47-
insert into test8(f1, f8) values (x'f1'::int, 0);
47+
insert into test8(f1, f8) values (x'7f00007f'::int, 0);
4848
select t_bits, t_data from heap_page_items(get_raw_page('test8', 0));
4949
select tuple_data_split('test8'::regclass, t_data, t_infomask, t_infomask2, t_bits)
5050
from heap_page_items(get_raw_page('test8', 0));

0 commit comments

Comments
 (0)