Skip to content

Commit 599fd15

Browse files
committed
add documentation for 'dump_stat' extension
1 parent d512de2 commit 599fd15

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

doc/src/sgml/contrib.sgml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ CREATE EXTENSION <replaceable>module_name</> FROM unpackaged;
113113
&dblink;
114114
&dict-int;
115115
&dict-xsyn;
116+
&dump-stat;
116117
&earthdistance;
117118
&file-fdw;
118119
&fuzzystrmatch;

doc/src/sgml/dump_stat.sgml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!-- doc/src/sgml/dump_stat.sgml -->
2+
3+
<sect1 id="dump-stat" xreflabel="dump-stat">
4+
<title>dump_stat</title>
5+
6+
<indexterm zone="dump-stat">
7+
<primary>dump_stat</primary>
8+
</indexterm>
9+
10+
<para>
11+
The <filename>dump_stat</> module provides functions that allow you to
12+
backup and recover the contents of the pg_statistic table.
13+
</para>
14+
15+
<sect2>
16+
<title>Functions</title>
17+
18+
<variablelist>
19+
<varlistentry>
20+
<term>
21+
<function>dump_statistic() returns setof text</function>
22+
<indexterm>
23+
<primary>dump_statistic</primary>
24+
</indexterm>
25+
</term>
26+
27+
<listitem>
28+
<para>
29+
<function>dump_statistic</function> dumps the contents of the
30+
<link linkend="catalog-pg-statistic"><structname>pg_statistic</structname></link>
31+
system catalog. It produces an <literal>INSERT</> statement
32+
per each tuple of the <literal>pg_statistic</>, excluding
33+
the ones that contain statistical data for tables in
34+
<literal>information_schema</> and <literal>pg_catalog</>
35+
schemas.
36+
</para>
37+
</listitem>
38+
</varlistentry>
39+
</variablelist>
40+
</sect1>

doc/src/sgml/filelist.sgml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
<!ENTITY ltree SYSTEM "ltree.sgml">
127127
<!ENTITY oid2name SYSTEM "oid2name.sgml">
128128
<!ENTITY pageinspect SYSTEM "pageinspect.sgml">
129+
<!ENTITY dump-stat SYSTEM "dump_stat.sgml">
129130
<!ENTITY passwordcheck SYSTEM "passwordcheck.sgml">
130131
<!ENTITY pgbuffercache SYSTEM "pgbuffercache.sgml">
131132
<!ENTITY pgcrypto SYSTEM "pgcrypto.sgml">

0 commit comments

Comments
 (0)