Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit18869e2

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 parentcc6337d commit18869e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎contrib/pageinspect/expected/page.out

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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
createtabletest8 (f1int, f2int, f3int, f4int, f5int, f6int, f7int, f8int);
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_datafrom 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)

[8]ページ先頭

©2009-2025 Movatter.jp