Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
ef04cb74
Commit
ef04cb74
authored
12 years ago
by
Simon Riggs
Browse files
Options
Downloads
Patches
Plain Diff
Add pageinspect--1.1.sql for checksum changes
parent
bb7cc262
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/pageinspect/pageinspect--1.1.sql
+107
-0
107 additions, 0 deletions
contrib/pageinspect/pageinspect--1.1.sql
with
107 additions
and
0 deletions
contrib/pageinspect/pageinspect--1.1.sql
0 → 100644
+
107
−
0
View file @
ef04cb74
/* contrib/pageinspect/pageinspect--1.1.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\
echo
Use
"CREATE EXTENSION pageinspect"
to
load
this
file
.
\
quit
--
-- get_raw_page()
--
CREATE
FUNCTION
get_raw_page
(
text
,
int4
)
RETURNS
bytea
AS
'MODULE_PATHNAME'
,
'get_raw_page'
LANGUAGE
C
STRICT
;
CREATE
FUNCTION
get_raw_page
(
text
,
text
,
int4
)
RETURNS
bytea
AS
'MODULE_PATHNAME'
,
'get_raw_page_fork'
LANGUAGE
C
STRICT
;
--
-- page_header()
--
CREATE
FUNCTION
page_header
(
IN
page
bytea
,
OUT
lsn
text
,
OUT
checksum
smallint
,
OUT
flags
smallint
,
OUT
lower
smallint
,
OUT
upper
smallint
,
OUT
special
smallint
,
OUT
pagesize
smallint
,
OUT
version
smallint
,
OUT
prune_xid
xid
)
AS
'MODULE_PATHNAME'
,
'page_header'
LANGUAGE
C
STRICT
;
--
-- heap_page_items()
--
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
)
RETURNS
SETOF
record
AS
'MODULE_PATHNAME'
,
'heap_page_items'
LANGUAGE
C
STRICT
;
--
-- bt_metap()
--
CREATE
FUNCTION
bt_metap
(
IN
relname
text
,
OUT
magic
int4
,
OUT
version
int4
,
OUT
root
int4
,
OUT
level
int4
,
OUT
fastroot
int4
,
OUT
fastlevel
int4
)
AS
'MODULE_PATHNAME'
,
'bt_metap'
LANGUAGE
C
STRICT
;
--
-- bt_page_stats()
--
CREATE
FUNCTION
bt_page_stats
(
IN
relname
text
,
IN
blkno
int4
,
OUT
blkno
int4
,
OUT
type
"char"
,
OUT
live_items
int4
,
OUT
dead_items
int4
,
OUT
avg_item_size
int4
,
OUT
page_size
int4
,
OUT
free_size
int4
,
OUT
btpo_prev
int4
,
OUT
btpo_next
int4
,
OUT
btpo
int4
,
OUT
btpo_flags
int4
)
AS
'MODULE_PATHNAME'
,
'bt_page_stats'
LANGUAGE
C
STRICT
;
--
-- bt_page_items()
--
CREATE
FUNCTION
bt_page_items
(
IN
relname
text
,
IN
blkno
int4
,
OUT
itemoffset
smallint
,
OUT
ctid
tid
,
OUT
itemlen
smallint
,
OUT
nulls
bool
,
OUT
vars
bool
,
OUT
data
text
)
RETURNS
SETOF
record
AS
'MODULE_PATHNAME'
,
'bt_page_items'
LANGUAGE
C
STRICT
;
--
-- fsm_page_contents()
--
CREATE
FUNCTION
fsm_page_contents
(
IN
page
bytea
)
RETURNS
text
AS
'MODULE_PATHNAME'
,
'fsm_page_contents'
LANGUAGE
C
STRICT
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment