Commit dba91533 authored by Peter Geoghegan's avatar Peter Geoghegan

Doc: Fix pageinspect bt_page_items() example.

Oversight in commit 93ee38ea.
parent 93ee38ea
...@@ -357,8 +357,8 @@ btpo_flags | 3 ...@@ -357,8 +357,8 @@ btpo_flags | 3
<function>bt_page_items</function> returns detailed information about <function>bt_page_items</function> returns detailed information about
all of the items on a B-tree index page. For example: all of the items on a B-tree index page. For example:
<screen> <screen>
test=# SELECT itemoffset, ctid, itemlen, nulls, vars, data, dead, htid, tids[0:2] AS some_tids test=# SELECT itemoffset, ctid, itemlen, nulls, vars, data, dead, htid, tids[0:2] AS some_tids
FROM bt_page_items(get_raw_page('tenk2_hundred', 5)); FROM bt_page_items('tenk2_hundred', 5);
itemoffset | ctid | itemlen | nulls | vars | data | dead | htid | some_tids itemoffset | ctid | itemlen | nulls | vars | data | dead | htid | some_tids
------------+-----------+---------+-------+------+-------------------------+------+--------+--------------------- ------------+-----------+---------+-------+------+-------------------------+------+--------+---------------------
1 | (16,1) | 16 | f | f | 30 00 00 00 00 00 00 00 | | | 1 | (16,1) | 16 | f | f | 30 00 00 00 00 00 00 00 | | |
...@@ -445,7 +445,7 @@ btpo_flags | 3 ...@@ -445,7 +445,7 @@ btpo_flags | 3
with <function>get_raw_page</function> should be passed as argument. So with <function>get_raw_page</function> should be passed as argument. So
the last example could also be rewritten like this: the last example could also be rewritten like this:
<screen> <screen>
test=# SELECT itemoffset, ctid, itemlen, nulls, vars, data, dead, htid, tids[0:2] AS some_tids test=# SELECT itemoffset, ctid, itemlen, nulls, vars, data, dead, htid, tids[0:2] AS some_tids
FROM bt_page_items(get_raw_page('tenk2_hundred', 5)); FROM bt_page_items(get_raw_page('tenk2_hundred', 5));
itemoffset | ctid | itemlen | nulls | vars | data | dead | htid | some_tids itemoffset | ctid | itemlen | nulls | vars | data | dead | htid | some_tids
------------+-----------+---------+-------+------+-------------------------+------+--------+--------------------- ------------+-----------+---------+-------+------+-------------------------+------+--------+---------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment