Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b52cb469
Commit
b52cb469
authored
Dec 02, 2014
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pageinspect/BRIN: minor tweaks
Michael Paquier Double-dash additions suggested by Peter Geoghegan
parent
33256243
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
contrib/pageinspect/pageinspect--1.2--1.3.sql
contrib/pageinspect/pageinspect--1.2--1.3.sql
+1
-0
contrib/pageinspect/pageinspect--1.3.sql
contrib/pageinspect/pageinspect--1.3.sql
+1
-0
doc/src/sgml/pageinspect.sgml
doc/src/sgml/pageinspect.sgml
+6
-6
No files found.
contrib/pageinspect/pageinspect--1.2--1.3.sql
View file @
b52cb469
...
...
@@ -21,6 +21,7 @@ LANGUAGE C STRICT;
--
-- brin_revmap_data()
--
CREATE
FUNCTION
brin_revmap_data
(
IN
page
bytea
,
OUT
pages
tid
)
RETURNS
SETOF
tid
...
...
contrib/pageinspect/pageinspect--1.3.sql
View file @
b52cb469
...
...
@@ -116,6 +116,7 @@ LANGUAGE C STRICT;
--
-- brin_revmap_data()
--
CREATE
FUNCTION
brin_revmap_data
(
IN
page
bytea
,
OUT
pages
tid
)
RETURNS
SETOF
tid
...
...
doc/src/sgml/pageinspect.sgml
View file @
b52cb469
...
...
@@ -210,7 +210,7 @@ test=# SELECT * FROM bt_page_items('pg_cast_oid_index', 1);
<acronym>BRIN</acronym> index page, or throws an error if the page is
not a valid <acronym>BRIN</acronym> page. For example:
<screen>
brintest=# select
brin_page_type(get_raw_page('brinidx', 0));
test=# SELECT
brin_page_type(get_raw_page('brinidx', 0));
brin_page_type
----------------
meta
...
...
@@ -232,7 +232,7 @@ brintest=# select brin_page_type(get_raw_page('brinidx', 0));
<function>brin_metapage_info</function> returns assorted information
about a <acronym>BRIN</acronym> index metapage. For example:
<screen>
brintest=# select * from
brin_metapage_info(get_raw_page('brinidx', 0));
test=# SELECT * FROM
brin_metapage_info(get_raw_page('brinidx', 0));
magic | version | pagesperrange | lastrevmappage
------------+---------+---------------+----------------
0xA8109CFA | 1 | 4 | 2
...
...
@@ -255,7 +255,7 @@ brintest=# select * from brin_metapage_info(get_raw_page('brinidx', 0));
identifiers in a <acronym>BRIN</acronym> index range map page.
For example:
<screen>
brintest=# select * from
brin_revmap_data(get_raw_page('brinidx', 2)) limit 5;
test=# SELECT * FROM
brin_revmap_data(get_raw_page('brinidx', 2)) limit 5;
pages
---------
(6,137)
...
...
@@ -281,9 +281,9 @@ brintest=# select * from brin_revmap_data(get_raw_page('brinidx', 2)) limit 5;
<function>brin_page_items</function> returns the data stored in the
<acronym>BRIN</acronym> data page. For example:
<screen>
brintest=# select * from
brin_page_items(get_raw_page('brinidx', 5),
brintest(#
'brinidx')
brintest-# order by blknum, attnum limit
6;
test=# SELECT * FROM
brin_page_items(get_raw_page('brinidx', 5),
'brinidx')
ORDER BY blknum, attnum LIMIT
6;
itemoffset | blknum | attnum | allnulls | hasnulls | placeholder | value
------------+--------+--------+----------+----------+-------------+--------------
137 | 0 | 1 | t | f | f |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment