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
a02731cb
Commit
a02731cb
authored
Mar 17, 2017
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pageinspect: Add test for page_header function
parent
aa7464d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
contrib/pageinspect/expected/page.out
contrib/pageinspect/expected/page.out
+6
-0
contrib/pageinspect/sql/page.sql
contrib/pageinspect/sql/page.sql
+2
-0
No files found.
contrib/pageinspect/expected/page.out
View file @
a02731cb
...
@@ -43,6 +43,12 @@ SELECT get_raw_page('test1', 0) = get_raw_page('test1', 'main', 0);
...
@@ -43,6 +43,12 @@ SELECT get_raw_page('test1', 0) = get_raw_page('test1', 'main', 0);
t
t
(1 row)
(1 row)
SELECT pagesize, version FROM page_header(get_raw_page('test1', 0));
pagesize | version
----------+---------
8192 | 4
(1 row)
SELECT tuple_data_split('test1'::regclass, t_data, t_infomask, t_infomask2, t_bits)
SELECT tuple_data_split('test1'::regclass, t_data, t_infomask, t_infomask2, t_bits)
FROM heap_page_items(get_raw_page('test1', 0));
FROM heap_page_items(get_raw_page('test1', 0));
tuple_data_split
tuple_data_split
...
...
contrib/pageinspect/sql/page.sql
View file @
a02731cb
...
@@ -22,6 +22,8 @@ SELECT octet_length(get_raw_page('test1', 'xxx', 0));
...
@@ -22,6 +22,8 @@ SELECT octet_length(get_raw_page('test1', 'xxx', 0));
SELECT
get_raw_page
(
'test1'
,
0
)
=
get_raw_page
(
'test1'
,
'main'
,
0
);
SELECT
get_raw_page
(
'test1'
,
0
)
=
get_raw_page
(
'test1'
,
'main'
,
0
);
SELECT
pagesize
,
version
FROM
page_header
(
get_raw_page
(
'test1'
,
0
));
SELECT
tuple_data_split
(
'test1'
::
regclass
,
t_data
,
t_infomask
,
t_infomask2
,
t_bits
)
SELECT
tuple_data_split
(
'test1'
::
regclass
,
t_data
,
t_infomask
,
t_infomask2
,
t_bits
)
FROM
heap_page_items
(
get_raw_page
(
'test1'
,
0
));
FROM
heap_page_items
(
get_raw_page
(
'test1'
,
0
));
...
...
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