mirror of
https://github.com/postgres/postgres.git
synced 2025-06-07 11:02:12 +03:00
pageinspect: Make btree test more portable
Choose test data that makes the output independent of endianness and alignment.
This commit is contained in:
parent
9779f71c40
commit
f7c9a6e083
@ -1,5 +1,5 @@
|
|||||||
CREATE TABLE test1 (a int, b text);
|
CREATE TABLE test1 (a int8, b text);
|
||||||
INSERT INTO test1 VALUES (1, 'one');
|
INSERT INTO test1 VALUES (72057594037927937, 'text');
|
||||||
CREATE INDEX test1_a_idx ON test1 USING btree (a);
|
CREATE INDEX test1_a_idx ON test1 USING btree (a);
|
||||||
\x
|
\x
|
||||||
SELECT * FROM bt_metap('test1_a_idx');
|
SELECT * FROM bt_metap('test1_a_idx');
|
||||||
@ -38,7 +38,7 @@ ctid | (0,1)
|
|||||||
itemlen | 16
|
itemlen | 16
|
||||||
nulls | f
|
nulls | f
|
||||||
vars | f
|
vars | f
|
||||||
data | 01 00 00 00 00 00 00 00
|
data | 01 00 00 00 00 00 00 01
|
||||||
|
|
||||||
SELECT * FROM bt_page_items('test1_a_idx', 2);
|
SELECT * FROM bt_page_items('test1_a_idx', 2);
|
||||||
ERROR: block number out of range
|
ERROR: block number out of range
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
CREATE TABLE test1 (a int, b text);
|
CREATE TABLE test1 (a int8, b text);
|
||||||
INSERT INTO test1 VALUES (1, 'one');
|
INSERT INTO test1 VALUES (72057594037927937, 'text');
|
||||||
CREATE INDEX test1_a_idx ON test1 USING btree (a);
|
CREATE INDEX test1_a_idx ON test1 USING btree (a);
|
||||||
|
|
||||||
\x
|
\x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user