mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Doc: Fix pageinspect bt_page_items() example.
Oversight in commit 93ee38ea.
This commit is contained in:
parent
93ee38eade
commit
dba9153339
@ -357,8 +357,8 @@ btpo_flags | 3
|
||||
<function>bt_page_items</function> returns detailed information about
|
||||
all of the items on a B-tree index page. For example:
|
||||
<screen>
|
||||
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));
|
||||
test=# SELECT itemoffset, ctid, itemlen, nulls, vars, data, dead, htid, tids[0:2] AS some_tids
|
||||
FROM bt_page_items('tenk2_hundred', 5);
|
||||
itemoffset | ctid | itemlen | nulls | vars | data | dead | htid | some_tids
|
||||
------------+-----------+---------+-------+------+-------------------------+------+--------+---------------------
|
||||
1 | (16,1) | 16 | f | f | 30 00 00 00 00 00 00 00 | | |
|
||||
@ -445,7 +445,7 @@ btpo_flags | 3
|
||||
with <function>get_raw_page</function> should be passed as argument. So
|
||||
the last example could also be rewritten like this:
|
||||
<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));
|
||||
itemoffset | ctid | itemlen | nulls | vars | data | dead | htid | some_tids
|
||||
------------+-----------+---------+-------+------+-------------------------+------+--------+---------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user