diff options
author | Peter Eisentraut | 2016-11-01 16:00:00 +0000 |
---|---|---|
committer | Peter Eisentraut | 2016-11-02 02:02:39 +0000 |
commit | f7c9a6e083da3f64e7440a31960b837353514262 (patch) | |
tree | 7bb65aec5209c3325af8ba59076f8251cbbe96d6 | |
parent | 9779f71c40906876018e85982c1d4a7a8c52abec (diff) |
pageinspect: Make btree test more portable
Choose test data that makes the output independent of endianness and
alignment.
-rw-r--r-- | contrib/pageinspect/expected/btree.out | 6 | ||||
-rw-r--r-- | contrib/pageinspect/sql/btree.sql | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/contrib/pageinspect/expected/btree.out b/contrib/pageinspect/expected/btree.out index ef7f86e885..82a49e3d6c 100644 --- a/contrib/pageinspect/expected/btree.out +++ b/contrib/pageinspect/expected/btree.out @@ -1,5 +1,5 @@ -CREATE TABLE test1 (a int, b text); -INSERT INTO test1 VALUES (1, 'one'); +CREATE TABLE test1 (a int8, b text); +INSERT INTO test1 VALUES (72057594037927937, 'text'); CREATE INDEX test1_a_idx ON test1 USING btree (a); \x SELECT * FROM bt_metap('test1_a_idx'); @@ -38,7 +38,7 @@ ctid | (0,1) itemlen | 16 nulls | 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); ERROR: block number out of range diff --git a/contrib/pageinspect/sql/btree.sql b/contrib/pageinspect/sql/btree.sql index 4fa3416c73..1eafc3249c 100644 --- a/contrib/pageinspect/sql/btree.sql +++ b/contrib/pageinspect/sql/btree.sql @@ -1,5 +1,5 @@ -CREATE TABLE test1 (a int, b text); -INSERT INTO test1 VALUES (1, 'one'); +CREATE TABLE test1 (a int8, b text); +INSERT INTO test1 VALUES (72057594037927937, 'text'); CREATE INDEX test1_a_idx ON test1 USING btree (a); \x |