Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0271e27

Browse files
committed
Add forgotten file in commitd6061f8
1 parentd6061f8 commit0271e27

File tree

1 file changed

+118
-0
lines changed

1 file changed

+118
-0
lines changed
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/* contrib/pageinspect/pageinspect--1.3--1.4.sql*/
2+
3+
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4+
\echo Use"ALTER EXTENSION pageinspect UPDATE TO '1.4'" to load this file. \quit
5+
6+
--
7+
-- heap_page_items()
8+
--
9+
DROPFUNCTION heap_page_items(bytea);
10+
CREATEFUNCTIONheap_page_items(IN pagebytea,
11+
OUT lpsmallint,
12+
OUT lp_offsmallint,
13+
OUT lp_flagssmallint,
14+
OUT lp_lensmallint,
15+
OUT t_xmin xid,
16+
OUT t_xmax xid,
17+
OUT t_field3 int4,
18+
OUT t_ctid tid,
19+
OUT t_infomask2integer,
20+
OUT t_infomaskinteger,
21+
OUT t_hoffsmallint,
22+
OUT t_bitstext,
23+
OUT t_oidoid,
24+
OUT t_databytea)
25+
RETURNS SETOF record
26+
AS'MODULE_PATHNAME','heap_page_items'
27+
LANGUAGE C STRICT;
28+
29+
--
30+
-- tuple_data_split()
31+
--
32+
CREATEFUNCTIONtuple_data_split(rel_oidoid,
33+
t_databytea,
34+
t_infomaskinteger,
35+
t_infomask2integer,
36+
t_bitstext)
37+
RETURNSbytea[]
38+
AS'MODULE_PATHNAME','tuple_data_split'
39+
LANGUAGE C;
40+
41+
CREATEFUNCTIONtuple_data_split(rel_oidoid,
42+
t_databytea,
43+
t_infomaskinteger,
44+
t_infomask2integer,
45+
t_bitstext,
46+
do_detoast bool)
47+
RETURNSbytea[]
48+
AS'MODULE_PATHNAME','tuple_data_split'
49+
LANGUAGE C;
50+
51+
--
52+
-- heap_page_item_attrs()
53+
--
54+
CREATEFUNCTIONheap_page_item_attrs(
55+
IN pagebytea,
56+
IN rel_oid regclass,
57+
IN do_detoast bool,
58+
OUT lpsmallint,
59+
OUT lp_offsmallint,
60+
OUT lp_flagssmallint,
61+
OUT lp_lensmallint,
62+
OUT t_xmin xid,
63+
OUT t_xmax xid,
64+
OUT t_field3 int4,
65+
OUT t_ctid tid,
66+
OUT t_infomask2integer,
67+
OUT t_infomaskinteger,
68+
OUT t_hoffsmallint,
69+
OUT t_bitstext,
70+
OUT t_oidoid,
71+
OUT t_attrsbytea[]
72+
)
73+
RETURNS SETOF recordAS $$
74+
SELECT lp,
75+
lp_off,
76+
lp_flags,
77+
lp_len,
78+
t_xmin,
79+
t_xmax,
80+
t_field3,
81+
t_ctid,
82+
t_infomask2,
83+
t_infomask,
84+
t_hoff,
85+
t_bits,
86+
t_oid,
87+
tuple_data_split(
88+
rel_oid,
89+
t_data,
90+
t_infomask,
91+
t_infomask2,
92+
t_bits,
93+
do_detoast)
94+
AS t_attrs
95+
FROM heap_page_items(page);
96+
$$ LANGUAGE SQL;
97+
98+
CREATEFUNCTIONheap_page_item_attrs(
99+
IN pagebytea,
100+
IN rel_oid regclass,
101+
OUT lpsmallint,
102+
OUT lp_offsmallint,
103+
OUT lp_flagssmallint,
104+
OUT lp_lensmallint,
105+
OUT t_xmin xid,
106+
OUT t_xmax xid,
107+
OUT t_field3 int4,
108+
OUT t_ctid tid,
109+
OUT t_infomask2integer,
110+
OUT t_infomaskinteger,
111+
OUT t_hoffsmallint,
112+
OUT t_bitstext,
113+
OUT t_oidoid,
114+
OUT t_attrsbytea[]
115+
)
116+
RETURNS SETOF recordAS $$
117+
SELECT*from heap_page_item_attrs(page, rel_oid, false);
118+
$$ LANGUAGE SQL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp