Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit18562e2

Browse files
committed
[PGPRO-12159] Added three missing pageinspect functions for rum.
1) rum_internal_data_page_items() - it is intended for viewing information that is located on the internal pages of the posting tree (flags {data}).2) rum_leaf_entry_page_items() - it is intended for viewing information that is located on the leaf pages of the entry tree (flags {leaf}).3) rum_internal_entry_page_items() - it is intended for viewing information that is located on the internal pages of the entry tree (flags {}).To extract information, all these functions need to pass the index nameand the page number.Tags: rum
1 parentc9a31de commit18562e2

File tree

2 files changed

+1215
-243
lines changed

2 files changed

+1215
-243
lines changed

‎rum_init.sql

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ LANGUAGE C;
66
/*
77
* RUM access method
88
*/
9-
109
CREATE ACCESS METHOD rum TYPE INDEX HANDLER rumhandler;
1110

1211
/*
@@ -1738,7 +1737,7 @@ CREATE FUNCTION rum_metapage_info(
17381737
OUT n_entry_pagesbigint,
17391738
OUT n_data_pagesbigint,
17401739
OUT n_entriesbigint,
1741-
OUT versionbigint)
1740+
OUT versionvarchar)
17421741
AS'MODULE_PATHNAME','rum_metapage_info'
17431742
LANGUAGE C STRICT PARALLEL SAFE;
17441743

@@ -1756,9 +1755,48 @@ LANGUAGE C STRICT PARALLEL SAFE;
17561755
CREATEFUNCTIONrum_leaf_data_page_items(
17571756
IN rel_nametext,
17581757
IN blk_num int8,
1758+
OUT is_high_key bool,
17591759
OUT tuple_id tid,
17601760
OUT add_info_is_null bool,
1761-
OUTaddInfovarchar)
1761+
OUTadd_infovarchar)
17621762
RETURNS SETOF record
17631763
AS'MODULE_PATHNAME','rum_leaf_data_page_items'
17641764
LANGUAGE C STRICT PARALLEL SAFE;
1765+
1766+
CREATEFUNCTIONrum_internal_data_page_items(
1767+
IN rel_nametext,
1768+
IN blk_num int8,
1769+
OUT is_high_key bool,
1770+
OUT block_number int8,
1771+
OUT tuple_id tid,
1772+
OUT add_info_is_null bool,
1773+
OUT add_infovarchar)
1774+
RETURNS SETOF record
1775+
AS'MODULE_PATHNAME','rum_internal_data_page_items'
1776+
LANGUAGE C STRICT PARALLEL SAFE;
1777+
1778+
CREATEFUNCTIONrum_leaf_entry_page_items(
1779+
IN rel_nametext,
1780+
IN blk_num int8,
1781+
OUT keyvarchar,
1782+
OUT attrnum int8,
1783+
OUT categoryvarchar,
1784+
OUT tuple_id tid,
1785+
OUT add_info_is_null bool,
1786+
OUT add_infovarchar,
1787+
OUT is_postring_tree bool,
1788+
OUT postring_tree_root int8)
1789+
RETURNS SETOF record
1790+
AS'MODULE_PATHNAME','rum_leaf_entry_page_items'
1791+
LANGUAGE C STRICT PARALLEL SAFE;
1792+
1793+
CREATEFUNCTIONrum_internal_entry_page_items(
1794+
IN rel_nametext,
1795+
IN blk_num int8,
1796+
OUT keyvarchar,
1797+
OUT attrnum int8,
1798+
OUT categoryvarchar,
1799+
OUT down_link int8)
1800+
RETURNS SETOF record
1801+
AS'MODULE_PATHNAME','rum_internal_entry_page_items'
1802+
LANGUAGE C STRICT PARALLEL SAFE;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp