Skip to content

Commit 68b79ed

Browse files
author
chegong18
committed
Update pageinspect.sgml -200718
——row227至285,增英和翻为: <varlistentry> <!--==========================orignal english content========================== <term> <function>fsm_page_contents(page bytea) returns text</function> <indexterm> <primary>fsm_page_contents</primary> </indexterm> </term> ____________________________________________________________________________--> <term> <function>fsm_page_contents(page bytea) returns text</function> <indexterm> <primary>fsm_page_contents</primary> </indexterm> </term> <listitem> <!--==========================orignal english content========================== <para> <function>fsm_page_contents</function> shows the internal node structure of a FSM page. For example: <screen> test=# SELECT fsm_page_contents(get_raw_page('pg_class', 'fsm', 0)); </screen> The output is a multiline string, with one line per node in the binary tree within the page. Only those nodes that are not zero are printed. The so-called "next" pointer, which points to the next slot to be returned from the page, is also printed. </para> ____________________________________________________________________________--> <para> <function>fsm_page_contents</function>显示FSM页面的内部节点结构。例如: <screen> test=# SELECT fsm_page_contents(get_raw_page('pg_class', 'fsm', 0)); </screen> 输出为多行字符串,页面中的二进制树中每个节点有一行。 仅有不为零的节点会被打印。 所谓的“next”指针,指向页面中下一个要返回的槽,也会被打印。 </para> <!--==========================orignal english content========================== <para> See <filename>src/backend/storage/freespace/README</filename> for more information on the structure of an FSM page. </para> ____________________________________________________________________________--> <para> FSM页面结构的更多信息可参见 <filename>src/backend/storage/freespace/README</filename>。 </para> </listitem> </varlistentry> </variablelist> </sect2> <sect2> <!--==========================orignal english content========================== <title>Heap Functions</title> ____________________________________________________________________________--> <title>Heap Functions</title> <variablelist> ——row342,调英为: <function>tuple_data_split(rel_oid oid, t_data bytea, t_infomask integer, t_infomask2 integer, t_bits text [, do_detoast bool]) returns bytea[]</function> ——row349,调英为: <function>tuple_data_split(rel_oid oid, t_data bytea, t_infomask integer, t_infomask2 integer, t_bits text [, do_detoast bool]) returns bytea[]</function> ——row389,调英为: <function>heap_page_item_attrs(page bytea, rel_oid regclass [, do_detoast bool]) returns setof record</function> ——row396,调翻为: <function>heap_page_item_attrs(page bytea, rel_oid regclass [, do_detoast bool]) returns setof record</function> ——row435,删英和中为: <varlistentry> <!--==========================orignal english content========================== <term> <function>fsm_page_contents(page bytea) returns text</function> <indexterm> <primary>fsm_page_contents</primary> </indexterm> </term> ____________________________________________________________________________--> <term> <function>fsm_page_contents(page bytea) returns text</function> <indexterm> <primary>fsm_page_contents</primary> </indexterm> </term> <listitem> <!--==========================orignal english content========================== <para> <function>fsm_page_contents</function> shows the internal node structure of a FSM page. The output is a multiline string, with one line per node in the binary tree within the page. Only those nodes that are not zero are printed. The so-called "next" pointer, which points to the next slot to be returned from the page, is also printed. </para> ____________________________________________________________________________--> <para> <function>fsm_page_contents</function>展示一个FSM页面的内部节点结构。输出是一个多行字符串,每一行对应于页面中二叉树的每一个节点。只有非零节点才会被打印。所谓的“next”指针(指向页面中下一个要返回的槽)也会被打印。 </para> <!--==========================orignal english content========================== <para> See <filename>src/backend/storage/freespace/README</filename> for more information on the structure of an FSM page. </para> ____________________________________________________________________________--> <para> 更多有关FSM页面结构的信息请见<filename>src/backend/storage/freespace/README</filename>。 </para> </listitem> </varlistentry> ——row441,调英为: <title>B-Tree Functions</title>
1 parent cc9a021 commit 68b79ed

File tree

1 file changed

+70
-52
lines changed

1 file changed

+70
-52
lines changed

postgresql/doc/src/sgml/pageinspect.sgml

Lines changed: 70 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ test=# SELECT * FROM page_header(get_raw_page('pg_class', 0));
145145
</para>
146146

147147
<!--==========================orignal english content==========================
148-
<para>
148+
<para>
149149
The <structfield>checksum</structfield> field is the checksum stored in
150150
the page, which might be incorrect if the page is somehow corrupted. If
151151
data checksums are not enabled for this instance, then the value stored
152152
is meaningless.
153153
</para>
154154
____________________________________________________________________________-->
155-
<para>
155+
<para>
156156
<structfield>checksum</structfield>域是存放在页面中的校验和,如果页面被损坏它可能是不正确的。如果对这个实例没有启用数据校验和,则存储的这个值没有意义。
157157
</para>
158158
</listitem>
@@ -224,6 +224,65 @@ ____________________________________________________________________________-->
224224
</listitem>
225225
</varlistentry>
226226

227+
<varlistentry>
228+
<!--==========================orignal english content==========================
229+
<term>
230+
<function>fsm_page_contents(page bytea) returns text</function>
231+
<indexterm>
232+
<primary>fsm_page_contents</primary>
233+
</indexterm>
234+
</term>
235+
____________________________________________________________________________-->
236+
<term>
237+
<function>fsm_page_contents(page bytea) returns text</function>
238+
<indexterm>
239+
<primary>fsm_page_contents</primary>
240+
</indexterm>
241+
</term>
242+
243+
<listitem>
244+
<!--==========================orignal english content==========================
245+
<para>
246+
<function>fsm_page_contents</function> shows the internal node structure
247+
of a FSM page. For example:
248+
<screen>
249+
test=# SELECT fsm_page_contents(get_raw_page('pg_class', 'fsm', 0));
250+
</screen>
251+
The output is a multiline string, with one line per node in the binary
252+
tree within the page. Only those nodes that are not zero are printed.
253+
The so-called "next" pointer, which points to the next slot to be
254+
returned from the page, is also printed.
255+
</para>
256+
____________________________________________________________________________-->
257+
<para>
258+
<function>fsm_page_contents</function>显示FSM页面的内部节点结构。例如:
259+
<screen>
260+
test=# SELECT fsm_page_contents(get_raw_page('pg_class', 'fsm', 0));
261+
</screen>
262+
输出为多行字符串,页面中的二进制树中每个节点有一行。 仅有不为零的节点会被打印。
263+
所谓的“next”指针,指向页面中下一个要返回的槽,也会被打印。
264+
</para>
265+
<!--==========================orignal english content==========================
266+
<para>
267+
See <filename>src/backend/storage/freespace/README</filename> for more
268+
information on the structure of an FSM page.
269+
</para>
270+
____________________________________________________________________________-->
271+
<para>
272+
FSM页面结构的更多信息可参见 <filename>src/backend/storage/freespace/README</filename>。
273+
</para>
274+
</listitem>
275+
</varlistentry>
276+
</variablelist>
277+
</sect2>
278+
279+
<sect2>
280+
<!--==========================orignal english content==========================
281+
<title>Heap Functions</title>
282+
____________________________________________________________________________-->
283+
<title>Heap Functions</title>
284+
285+
<variablelist>
227286
<varlistentry>
228287
<!--==========================orignal english content==========================
229288
<term>
@@ -276,18 +335,18 @@ test=# SELECT * FROM heap_page_items(get_raw_page('pg_class', 0));
276335
</para>
277336
</listitem>
278337
</varlistentry>
279-
338+
280339
<varlistentry>
281340
<!--==========================orignal english content==========================
282341
<term>
283-
<function>tuple_data_split(rel_oid, t_data bytea, t_infomask integer, t_infomask2 integer, t_bits text [, do_detoast bool]) returns bytea[]</function>
342+
<function>tuple_data_split(rel_oid oid, t_data bytea, t_infomask integer, t_infomask2 integer, t_bits text [, do_detoast bool]) returns bytea[]</function>
284343
<indexterm>
285344
<primary>tuple_data_split</primary>
286345
</indexterm>
287346
</term>
288347
____________________________________________________________________________-->
289348
<term>
290-
<function>tuple_data_split(rel_oid, t_data bytea, t_infomask integer, t_infomask2 integer, t_bits text [, do_detoast bool]) returns bytea[]</function>
349+
<function>tuple_data_split(rel_oid oid, t_data bytea, t_infomask integer, t_infomask2 integer, t_bits text [, do_detoast bool]) returns bytea[]</function>
291350
<indexterm>
292351
<primary>tuple_data_split</primary>
293352
</indexterm>
@@ -327,14 +386,14 @@ ____________________________________________________________________________-->
327386
<varlistentry>
328387
<!--==========================orignal english content==========================
329388
<term>
330-
<function>heap_page_item_attrs(rel_oid, t_data bytea, [, do_detoast bool]) returns bytea[]</function>
389+
<function>heap_page_item_attrs(page bytea, rel_oid regclass [, do_detoast bool]) returns setof record</function>
331390
<indexterm>
332391
<primary>heap_page_item_attrs</primary>
333392
</indexterm>
334393
</term>
335394
____________________________________________________________________________-->
336395
<term>
337-
<function>heap_page_item_attrs(rel_oid, t_data bytea, [, do_detoast bool]) returns bytea[]</function>
396+
<function>heap_page_item_attrs(page bytea, rel_oid regclass [, do_detoast bool]) returns setof record</function>
338397
<indexterm>
339398
<primary>heap_page_item_attrs</primary>
340399
</indexterm>
@@ -373,53 +432,12 @@ test=# SELECT * FROM heap_page_item_attrs(get_raw_page('pg_class', 0), 'pg_class
373432
</para>
374433
</listitem>
375434
</varlistentry>
376-
377-
<varlistentry>
378-
<!--==========================orignal english content==========================
379-
<term>
380-
<function>fsm_page_contents(page bytea) returns text</function>
381-
<indexterm>
382-
<primary>fsm_page_contents</primary>
383-
</indexterm>
384-
</term>
385-
____________________________________________________________________________-->
386-
<term>
387-
<function>fsm_page_contents(page bytea) returns text</function>
388-
<indexterm>
389-
<primary>fsm_page_contents</primary>
390-
</indexterm>
391-
</term>
392-
393-
<listitem>
394-
<!--==========================orignal english content==========================
395-
<para>
396-
<function>fsm_page_contents</function> shows the internal node structure
397-
of a FSM page. The output is a multiline string, with one line per
398-
node in the binary tree within the page. Only those nodes that are not
399-
zero are printed. The so-called "next" pointer, which points to the
400-
next slot to be returned from the page, is also printed.
401-
</para>
402-
____________________________________________________________________________-->
403-
<para>
404-
<function>fsm_page_contents</function>展示一个FSM页面的内部节点结构。输出是一个多行字符串,每一行对应于页面中二叉树的每一个节点。只有非零节点才会被打印。所谓的“next”指针(指向页面中下一个要返回的槽)也会被打印。
405-
</para>
406-
<!--==========================orignal english content==========================
407-
<para>
408-
See <filename>src/backend/storage/freespace/README</filename> for more
409-
information on the structure of an FSM page.
410-
</para>
411-
____________________________________________________________________________-->
412-
<para>
413-
更多有关FSM页面结构的信息请见<filename>src/backend/storage/freespace/README</filename>。
414-
</para>
415-
</listitem>
416-
</varlistentry>
417435
</variablelist>
418436
</sect2>
419437

420438
<sect2>
421439
<!--==========================orignal english content==========================
422-
<title>B-tree Functions</title>
440+
<title>B-Tree Functions</title>
423441
____________________________________________________________________________-->
424442
<title>B树函数</title>
425443

@@ -437,7 +455,7 @@ ____________________________________________________________________________-->
437455
<function>bt_metap(relname text) 返回 record</function>
438456
<indexterm>
439457
<primary>bt_metap</primary>
440-
</indexterm>
458+
</indexterm>
441459
</term>
442460

443461
<listitem>
@@ -490,7 +508,7 @@ ____________________________________________________________________________-->
490508
<function>bt_page_stats(relname text, blkno int) 返回 record</function>
491509
<indexterm>
492510
<primary>bt_page_stats</primary>
493-
</indexterm>
511+
</indexterm>
494512
</term>
495513

496514
<listitem>
@@ -549,7 +567,7 @@ ____________________________________________________________________________-->
549567
<function>bt_page_items(relname text, blkno int) 返回 setof record</function>
550568
<indexterm>
551569
<primary>bt_page_items</primary>
552-
</indexterm>
570+
</indexterm>
553571
</term>
554572

555573
<listitem>

0 commit comments

Comments
 (0)