- Notifications
You must be signed in to change notification settings - Fork58
[PGPRO-12159] Added functions for exploring the pages of the rum index.#150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
arseny114 wants to merge19 commits intopostgrespro:masterChoose a base branch fromarseny114:PGPRO-12159
base:master
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes fromall commits
Commits
Show all changes
19 commits Select commitHold shift + click to select a range
a3229ed
[PGPRO-12159] Added pageinspect functions for rum.
arseny11449d811d
[PGPRO-12159] Added three missing pageinspect functions for rum.
arseny11415b54fd
[PGPRO-12159] Added the output of tsv lexemes positions.
499ba6f
[PGPRO-12159] Added the output of weights.
84ab8c6
[PGPRO-12159] Fixed test crashes on version 15 of PostgreSQL.
343ffb5
[PGPRO-12159] Fixed test crashes on version 14 of PostgreSQL.
05d2f09
[PGPRO-12159] Fixed test crashes on version 13 of PostgreSQL.
65dab05
[PGPRO-12159] Code review.
8bf1ee8
[PGPRO-12159] Code review.
299d621
[PGPRO-12159] Fixed incorrect behaviour on 32-bit machines.
fd455a8
[PGPRO-12159] Added tests for rum_debug_funcs.
2071875
[PGPRO-12159] Code review.
a4c02b4
[PGPRO-12159] Fixed the search for the key attribute number.
1b142f1
[PGPRO-12159] Added a script for updating RUM to version 1.4.
8e305a5
[PGPRO-12159] Cosmetic fixes.
a75d3ed
[PGPRO-12159] Fixed the build on version 12 of PostgreSQL.
6fdc6eb
[PGPRO-12159] Added a description of rum_debug_funcs in README.md
6189098
[PGPRO-12159] A typo has been fixed.
b4016c5
[PGPRO-12159] Added perl test for rum_debug_funcs.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
6 changes: 3 additions & 3 deletionsMakefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletionsREADME.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletionmeson.build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
131 changes: 131 additions & 0 deletionsrum--1.3--1.4.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
/* | ||
* RUM version 1.4 | ||
*/ | ||
/*--------------------RUM debug functions-----------------------*/ | ||
CREATE FUNCTION rum_metapage_info( | ||
IN rel_name text, | ||
IN blk_num int4, | ||
OUT pending_head bigint, | ||
OUT pending_tail bigint, | ||
OUT tail_free_size int4, | ||
OUT n_pending_pages bigint, | ||
OUT n_pending_tuples bigint, | ||
OUT n_total_pages bigint, | ||
OUT n_entry_pages bigint, | ||
OUT n_data_pages bigint, | ||
OUT n_entries bigint, | ||
OUT version varchar) | ||
AS 'MODULE_PATHNAME', 'rum_metapage_info' | ||
LANGUAGE C STRICT PARALLEL SAFE; | ||
CREATE FUNCTION rum_page_opaque_info( | ||
IN rel_name text, | ||
IN blk_num int4, | ||
OUT leftlink bigint, | ||
OUT rightlink bigint, | ||
OUT maxoff int4, | ||
OUT freespace int4, | ||
OUT flags text[]) | ||
AS 'MODULE_PATHNAME', 'rum_page_opaque_info' | ||
LANGUAGE C STRICT PARALLEL SAFE; | ||
CREATE OR REPLACE FUNCTION | ||
rum_page_items_info(rel_name text, blk_num int4, page_type int4) | ||
RETURNS SETOF record | ||
AS 'MODULE_PATHNAME', 'rum_page_items_info' | ||
LANGUAGE C STRICT; | ||
CREATE FUNCTION rum_leaf_data_page_items( | ||
rel_name text, | ||
blk_num int4 | ||
) | ||
RETURNS TABLE( | ||
is_high_key bool, | ||
tuple_id tid, | ||
add_info_is_null bool, | ||
add_info varchar | ||
) | ||
AS $$ | ||
SELECT * | ||
FROM rum_page_items_info(rel_name, blk_num, 0) | ||
AS rum_page_items_info( | ||
is_high_key bool, | ||
tuple_id tid, | ||
add_info_is_null bool, | ||
add_info varchar | ||
); | ||
$$ LANGUAGE sql; | ||
CREATE FUNCTION rum_internal_data_page_items( | ||
rel_name text, | ||
blk_num int4 | ||
) | ||
RETURNS TABLE( | ||
is_high_key bool, | ||
block_number int4, | ||
tuple_id tid, | ||
add_info_is_null bool, | ||
add_info varchar | ||
) | ||
AS $$ | ||
SELECT * | ||
FROM rum_page_items_info(rel_name, blk_num, 1) | ||
AS rum_page_items_info( | ||
is_high_key bool, | ||
block_number int4, | ||
tuple_id tid, | ||
add_info_is_null bool, | ||
add_info varchar | ||
); | ||
$$ LANGUAGE sql; | ||
CREATE FUNCTION rum_leaf_entry_page_items( | ||
rel_name text, | ||
blk_num int4 | ||
) | ||
RETURNS TABLE( | ||
key varchar, | ||
attrnum int4, | ||
category varchar, | ||
tuple_id tid, | ||
add_info_is_null bool, | ||
add_info varchar, | ||
is_postring_tree bool, | ||
postring_tree_root int4 | ||
) | ||
AS $$ | ||
SELECT * | ||
FROM rum_page_items_info(rel_name, blk_num, 2) | ||
AS rum_page_items_info( | ||
key varchar, | ||
attrnum int4, | ||
category varchar, | ||
tuple_id tid, | ||
add_info_is_null bool, | ||
add_info varchar, | ||
is_postring_tree bool, | ||
postring_tree_root int4 | ||
); | ||
$$ LANGUAGE sql; | ||
CREATE FUNCTION rum_internal_entry_page_items( | ||
rel_name text, | ||
blk_num int4 | ||
) | ||
RETURNS TABLE( | ||
key varchar, | ||
attrnum int4, | ||
category varchar, | ||
down_link int4) | ||
AS $$ | ||
SELECT * | ||
FROM rum_page_items_info(rel_name, blk_num, 3) | ||
AS rum_page_items_info( | ||
key varchar, | ||
attrnum int4, | ||
category varchar, | ||
down_link int4 | ||
); | ||
$$ LANGUAGE sql; |
2 changes: 1 addition & 1 deletionrum.control
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# RUM extension | ||
comment = 'RUM index access method' | ||
default_version = '1.4' | ||
module_pathname = '$libdir/rum' | ||
relocatable = true |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.