Skip to content

Commit

Permalink
Translate pageinspect.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuju authored and gleu committed Jun 16, 2017
1 parent 2da858d commit 02555c1
Showing 1 changed file with 46 additions and 41 deletions.
87 changes: 46 additions & 41 deletions postgresql/pageinspect.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ test=# SELECT * FROM page_header(get_raw_page('pg_class', 0));
</para>

<para>
The <structfield>checksum</structfield> field is the checksum stored in
the page, which might be incorrect if the page is somehow corrupted. If
data checksums are not enabled for this instance, then the value stored
is meaningless.
Le champ <structfield>checksum</structfield> est la somme de contrôle
stockée dans la page, qui peut être incorrecte si la page est d'une
manière ou d'une autre corrompue. Si les sommes de contrôle des données
ne sont pas activées pour cette instance, alors la valeur stockée n'a
aucune signification.
</para>
</listitem>
</varlistentry>
Expand All @@ -106,28 +107,30 @@ test=# SELECT * FROM page_header(get_raw_page('pg_class', 0));

<listitem>
<para>
<function>page_checksum</function> computes the checksum for the page, as if
it was located at the given block.
<function>page_checksum</function> calcule la somme de contrôle pour la
page, comme si elle était sitée au numéro de block passé en paramètre.
</para>

<para>
A page image obtained with <function>get_raw_page</function> should be
passed as argument. For example:
Une image de page obtenue avec <function>get_raw_page</function> devrait
être passée en argument. Par exemple :
<screen>
test=# SELECT page_checksum(get_raw_page('pg_class', 0), 0);
page_checksum
---------------
13443
</screen>
Note that the checksum depends on the block number, so matching block
numbers should be passed (except when doing esoteric debugging).
Veuillez noter que la somme de contrôle dépend du numéro de bloc, ainsi
des numéros de blocs qui se correspondent devraient être passé (sauf lors
de débugage ésotériques).
</para>

<para>
The checksum computed with this function can be compared with
the <structfield>checksum</structfield> result field of the
function <function>page_header</function>. If data checksums are
enabled for this instance, then the two values should be equal.
Les sommes de contrôle calculées avec cette fonction peuvent être
comparées avec le champ <structfield>checksum</structfield> retournée par
la fonction <function>page_header</function>. Si les sommes de contrôle
des données sont activées sur cette instance, alors les deux valeurs
devraient être égales.
</para>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -225,23 +228,24 @@ test=# SELECT * FROM heap_page_item_attrs(get_raw_page('pg_class', 0), 'pg_class

<listitem>
<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.
<function>fsm_page_contents</function> montre la structure interne du
nœud d'une page FSM. La sortie est une chaîne de texte multiligne, avec
une ligne par nœud dans l'arbre binaire au sein de la page. Seuls ces
nœuds qui ne valent pas zéro sont affichés. Le pointeur appelé « next »,
qui pointe vers le prochain slot à être retourné depuis la page, est
également affiché.
</para>
<para>
See <filename>src/backend/storage/freespace/README</filename> for more
information on the structure of an FSM page.
Voir <filename>src/backend/storage/freespace/README</filename> pour plus
d'information sur la structure d'une page FSM.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<sect2>
<title>B-tree Functions</title>
<title>Fonctions B-tree</title>

<variablelist>

Expand Down Expand Up @@ -362,10 +366,11 @@ test=# SELECT * FROM bt_page_items('pg_cast_oid_index', 1);

<listitem>
<para>
It is also possible to pass a page to <function>bt_page_items</function>
as a <type>bytea</type> value. A page image obtained
with <function>get_raw_page</function> should be passed as argument. So
the last example could also be rewritten like this:
Il est également possible de passer une page à
<function>bt_page_items</function> comme une valeur de type
<type>bytea</type>. Une image de page obtenue avec
<function>get_raw_page</function> devrait être passé en argument. Ainsi
le précédent exemple pourrait également être réécrit ainsi :
<screen>
test=# SELECT * FROM bt_page_items(get_raw_page('pg_cast_oid_index', 1));
itemoffset | ctid | itemlen | nulls | vars | data
Expand All @@ -379,15 +384,15 @@ test=# SELECT * FROM bt_page_items(get_raw_page('pg_cast_oid_index', 1));
7 | (0,7) | 12 | f | f | 29 27 00 00
8 | (0,8) | 12 | f | f | 2a 27 00 00
</screen>
All the other details are the same as explained in the previous item.
Tous les autres étails sont les même qu'expliqué au point précédent.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<sect2>
<title>BRIN Functions</title>
<title>Fonctions BRIN</title>

<variablelist>
<varlistentry>
Expand Down Expand Up @@ -501,7 +506,7 @@ test=# SELECT * FROM brin_page_items(get_raw_page('brinidx', 5),
</sect2>

<sect2>
<title>GIN Functions</title>
<title>Fonctions GIN</title>

<variablelist>

Expand Down Expand Up @@ -594,7 +599,7 @@ test=# SELECT first_tid, nbytes, tids[0:5] AS some_tids
</sect2>

<sect2>
<title>Hash Functions</title>
<title>Fonctions Hash</title>

<variablelist>

Expand Down Expand Up @@ -630,9 +635,9 @@ test=# SELECT hash_page_type(get_raw_page('con_hash_index', 0));

<listitem>
<para>
<function>hash_page_stats</function> returns information about
a bucket or overflow page of a <acronym>HASH</acronym> index.
For example:
<function>hash_page_stats</function> retourne des informations sur un
bucket ou une page overflow d'un index <acronym>HASH</acronym>.
Par exemple :
<screen>
test=# SELECT * FROM hash_page_stats(get_raw_page('con_hash_index', 1));
-[ RECORD 1 ]---+-----------
Expand Down Expand Up @@ -660,9 +665,9 @@ hasho_page_id | 65408

<listitem>
<para>
<function>hash_page_items</function> returns information about
the data stored in a bucket or overflow page of a <acronym>HASH</acronym>
index page. For example:
<function>hash_page_items</function> retourne des informations sur les
données stockées dans un bucket ou une page overflow d'une page d'index
<acronym>HASH</acronym>. Par exemple :
<screen>
test=# SELECT * FROM hash_page_items(get_raw_page('con_hash_index', 1)) LIMIT 5;
itemoffset | ctid | data
Expand All @@ -687,9 +692,9 @@ test=# SELECT * FROM hash_page_items(get_raw_page('con_hash_index', 1)) LIMIT 5;

<listitem>
<para>
<function>hash_bitmap_info</function> shows the status of a bit
in the bitmap page for a particular overflow page of <acronym>HASH</acronym>
index. For example:
<function>hash_bitmap_info</function> montre le statut d'un bit dans la
page de bitmap pour une page overflow en particulier d'un index
<acronym>HASH</acronym>. Par exemple :
<screen>
test=# SELECT * FROM hash_bitmap_info('con_hash_index', 2052);
bitmapblkno | bitmapbit | bitstatus
Expand All @@ -710,8 +715,8 @@ test=# SELECT * FROM hash_bitmap_info('con_hash_index', 2052);

<listitem>
<para>
<function>hash_metapage_info</function> returns information stored
in meta page of a <acronym>HASH</acronym> index. For example:
<function>hash_metapage_info</function> retourne l'information stockée
dans la méta-page d'un index <acronym>HASH</acronym> index. Par exemple :
<screen>
test=# SELECT * FROM hash_metapage_info(get_raw_page('con_hash_index', 0));
-[ RECORD 1 ]-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 02555c1

Please sign in to comment.