Fix function signatures of pageinspect in documentation
authorMichael Paquier
Fri, 8 Mar 2019 06:10:14 +0000 (15:10 +0900)
committerMichael Paquier
Fri, 8 Mar 2019 06:10:14 +0000 (15:10 +0900)
tuple_data_split() lacked the type of the first argument, and
heap_page_item_attrs() has reversed the first and second argument,
with the bytea argument using an incorrect name.

Author: Laurenz Albe
Discussion: https://postgr.es/m/8f9ab7b16daf623e87eeef5203a4ffc0dece8dfd[email protected]
Backpatch-through: 9.6

doc/src/sgml/pageinspect.sgml

index 9cbe34c9d917923bc4f8d5f32415d943d0a48f2f..cdd2419479e214b7c2ed3a8f36854e4f256b2aa8 100644 (file)
@@ -156,7 +156,7 @@ test=# SELECT * FROM heap_page_items(get_raw_page('pg_class', 0));
 
    
     
-     tuple_data_split(rel_oid, t_data bytea, t_infomask integer, t_infomask2 integer, t_bits text [, do_detoast bool]) returns bytea[]
+     tuple_data_split(rel_oid oid, t_data bytea, t_infomask integer, t_infomask2 integer, t_bits text [, do_detoast bool]) returns bytea[]
      
       tuple_data_split
      
@@ -181,7 +181,7 @@ test=# SELECT tuple_data_split('pg_class'::regclass, t_data, t_infomask, t_infom
 
    
     
-     heap_page_item_attrs(rel_oid, t_data bytea, [, do_detoast bool]) returns bytea[]
+     heap_page_item_attrs(page bytea, rel_oid regclass, [, do_detoast bool]) returns setof record
      
       heap_page_item_attrs