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
0271e27c
Commit
0271e27c
authored
Nov 25, 2015
by
Teodor Sigaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add forgotten file in commit
d6061f83
parent
d6061f83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
118 additions
and
0 deletions
+118
-0
contrib/pageinspect/pageinspect--1.3--1.4.sql
contrib/pageinspect/pageinspect--1.3--1.4.sql
+118
-0
No files found.
contrib/pageinspect/pageinspect--1.3--1.4.sql
0 → 100644
View file @
0271e27c
/* contrib/pageinspect/pageinspect--1.3--1.4.sql */
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\
echo
Use
"ALTER EXTENSION pageinspect UPDATE TO '1.4'"
to
load
this
file
.
\
quit
--
-- heap_page_items()
--
DROP
FUNCTION
heap_page_items
(
bytea
);
CREATE
FUNCTION
heap_page_items
(
IN
page
bytea
,
OUT
lp
smallint
,
OUT
lp_off
smallint
,
OUT
lp_flags
smallint
,
OUT
lp_len
smallint
,
OUT
t_xmin
xid
,
OUT
t_xmax
xid
,
OUT
t_field3
int4
,
OUT
t_ctid
tid
,
OUT
t_infomask2
integer
,
OUT
t_infomask
integer
,
OUT
t_hoff
smallint
,
OUT
t_bits
text
,
OUT
t_oid
oid
,
OUT
t_data
bytea
)
RETURNS
SETOF
record
AS
'MODULE_PATHNAME'
,
'heap_page_items'
LANGUAGE
C
STRICT
;
--
-- tuple_data_split()
--
CREATE
FUNCTION
tuple_data_split
(
rel_oid
oid
,
t_data
bytea
,
t_infomask
integer
,
t_infomask2
integer
,
t_bits
text
)
RETURNS
bytea
[]
AS
'MODULE_PATHNAME'
,
'tuple_data_split'
LANGUAGE
C
;
CREATE
FUNCTION
tuple_data_split
(
rel_oid
oid
,
t_data
bytea
,
t_infomask
integer
,
t_infomask2
integer
,
t_bits
text
,
do_detoast
bool
)
RETURNS
bytea
[]
AS
'MODULE_PATHNAME'
,
'tuple_data_split'
LANGUAGE
C
;
--
-- heap_page_item_attrs()
--
CREATE
FUNCTION
heap_page_item_attrs
(
IN
page
bytea
,
IN
rel_oid
regclass
,
IN
do_detoast
bool
,
OUT
lp
smallint
,
OUT
lp_off
smallint
,
OUT
lp_flags
smallint
,
OUT
lp_len
smallint
,
OUT
t_xmin
xid
,
OUT
t_xmax
xid
,
OUT
t_field3
int4
,
OUT
t_ctid
tid
,
OUT
t_infomask2
integer
,
OUT
t_infomask
integer
,
OUT
t_hoff
smallint
,
OUT
t_bits
text
,
OUT
t_oid
oid
,
OUT
t_attrs
bytea
[]
)
RETURNS
SETOF
record
AS
$$
SELECT
lp
,
lp_off
,
lp_flags
,
lp_len
,
t_xmin
,
t_xmax
,
t_field3
,
t_ctid
,
t_infomask2
,
t_infomask
,
t_hoff
,
t_bits
,
t_oid
,
tuple_data_split
(
rel_oid
,
t_data
,
t_infomask
,
t_infomask2
,
t_bits
,
do_detoast
)
AS
t_attrs
FROM
heap_page_items
(
page
);
$$
LANGUAGE
SQL
;
CREATE
FUNCTION
heap_page_item_attrs
(
IN
page
bytea
,
IN
rel_oid
regclass
,
OUT
lp
smallint
,
OUT
lp_off
smallint
,
OUT
lp_flags
smallint
,
OUT
lp_len
smallint
,
OUT
t_xmin
xid
,
OUT
t_xmax
xid
,
OUT
t_field3
int4
,
OUT
t_ctid
tid
,
OUT
t_infomask2
integer
,
OUT
t_infomask
integer
,
OUT
t_hoff
smallint
,
OUT
t_bits
text
,
OUT
t_oid
oid
,
OUT
t_attrs
bytea
[]
)
RETURNS
SETOF
record
AS
$$
SELECT
*
from
heap_page_item_attrs
(
page
,
rel_oid
,
false
);
$$
LANGUAGE
SQL
;
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